Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
kvdb
rocksdb
提交
7af91d42
R
rocksdb
项目概览
kvdb
/
rocksdb
12 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rocksdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7af91d42
编写于
12月 08, 2015
作者:
I
Igor Canadi
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #873 from yuslepukhin/make_vs15_build
Fix up VS 15 build.
上级
1d63c3d6
78de0c92
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
14 deletion
+6
-14
CMakeLists.txt
CMakeLists.txt
+1
-1
port/win/port_win.h
port/win/port_win.h
+3
-12
tools/db_stress.cc
tools/db_stress.cc
+2
-1
未找到文件。
CMakeLists.txt
浏览文件 @
7af91d42
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
# 3. Run cmake to generate project files for Windows, add more options to enable required third-party libraries.
# 3. Run cmake to generate project files for Windows, add more options to enable required third-party libraries.
# See thirdparty.inc for more information.
# See thirdparty.inc for more information.
# sample command: cmake -G "Visual Studio 12 Win64" -DGFLAGS=1 -DSNAPPY=1 -DJEMALLOC=1 ..
# sample command: cmake -G "Visual Studio 12 Win64" -DGFLAGS=1 -DSNAPPY=1 -DJEMALLOC=1 ..
# OR for VS Studio 15 cmake -G "Visual Studio 1
2
Win64" -DGFLAGS=1 -DSNAPPY=1 -DJEMALLOC=1 ..
# OR for VS Studio 15 cmake -G "Visual Studio 1
4
Win64" -DGFLAGS=1 -DSNAPPY=1 -DJEMALLOC=1 ..
# 4. Then build the project in debug mode (you may want to add /m[:<N>] flag to run msbuild in <N> parallel threads
# 4. Then build the project in debug mode (you may want to add /m[:<N>] flag to run msbuild in <N> parallel threads
# or simply /m ot use all avail cores)
# or simply /m ot use all avail cores)
# msbuild rocksdb.sln
# msbuild rocksdb.sln
...
...
port/win/port_win.h
浏览文件 @
7af91d42
...
@@ -42,11 +42,6 @@
...
@@ -42,11 +42,6 @@
#define strcasecmp _stricmp
#define strcasecmp _stricmp
#endif
#endif
// defined in stdio.h
#ifndef snprintf
#define snprintf _snprintf
#endif
#undef GetCurrentTime
#undef GetCurrentTime
#undef DeleteFile
#undef DeleteFile
...
@@ -108,6 +103,9 @@ const size_t kMaxSizet = std::numeric_limits<size_t>::max();
...
@@ -108,6 +103,9 @@ const size_t kMaxSizet = std::numeric_limits<size_t>::max();
#else //_MSC_VER
#else //_MSC_VER
// VS 15 has snprintf
#define snprintf _snprintf
#define ROCKSDB_NOEXCEPT
#define ROCKSDB_NOEXCEPT
// std::numeric_limits<size_t>::max() is not constexpr just yet
// std::numeric_limits<size_t>::max() is not constexpr just yet
// therefore, use the same limits
// therefore, use the same limits
...
@@ -245,13 +243,6 @@ extern void InitOnce(OnceType* once, void (*initializer)());
...
@@ -245,13 +243,6 @@ extern void InitOnce(OnceType* once, void (*initializer)());
#define CACHE_LINE_SIZE 64U
#define CACHE_LINE_SIZE 64U
#ifdef min
#undef min
#endif
#ifdef max
#undef max
#endif
// For Thread Local Storage abstraction
// For Thread Local Storage abstraction
typedef
DWORD
pthread_key_t
;
typedef
DWORD
pthread_key_t
;
...
...
tools/db_stress.cc
浏览文件 @
7af91d42
...
@@ -610,7 +610,8 @@ class Stats {
...
@@ -610,7 +610,8 @@ class Stats {
""
,
bytes_mb
,
rate
,
(
100
*
writes_
)
/
done_
,
done_
);
""
,
bytes_mb
,
rate
,
(
100
*
writes_
)
/
done_
,
done_
);
fprintf
(
stdout
,
"%-12s: Wrote %ld times
\n
"
,
""
,
writes_
);
fprintf
(
stdout
,
"%-12s: Wrote %ld times
\n
"
,
""
,
writes_
);
fprintf
(
stdout
,
"%-12s: Deleted %ld times
\n
"
,
""
,
deletes_
);
fprintf
(
stdout
,
"%-12s: Deleted %ld times
\n
"
,
""
,
deletes_
);
fprintf
(
stdout
,
"%-12s: Single deleted %ld times
\n
"
,
""
,
single_deletes_
);
fprintf
(
stdout
,
"%-12s: Single deleted %"
ROCKSDB_PRIszt
" times
\n
"
,
""
,
single_deletes_
);
fprintf
(
stdout
,
"%-12s: %ld read and %ld found the key
\n
"
,
""
,
fprintf
(
stdout
,
"%-12s: %ld read and %ld found the key
\n
"
,
""
,
gets_
,
founds_
);
gets_
,
founds_
);
fprintf
(
stdout
,
"%-12s: Prefix scanned %ld times
\n
"
,
""
,
prefixes_
);
fprintf
(
stdout
,
"%-12s: Prefix scanned %ld times
\n
"
,
""
,
prefixes_
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录