-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add blackwidow to support kv to redis type #49
Conversation
src/pstd/env.h
Outdated
@@ -0,0 +1,157 @@ | |||
#ifndef __PSTD_ENV_H__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#ifndef
改成 #pragma once
吧 和前面统一
src/pstd/pstd_slice.h
Outdated
// non-const method, all threads accessing the same Slice must use | ||
// external synchronization. | ||
|
||
#ifndef __PSTD_SLICE_H__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pstd_slice.h
和 pstd_status.h
这两个文件之前就移植过来了, 只是名字没加pstd_
这个前缀, 可以把原来的文件重命名一下
src/pstd/lock_mgr.cc
Outdated
@@ -0,0 +1,177 @@ | |||
// Copyright (c) 2017-present The storage Authors. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修改为正确的版权声明
QX:注意添加 lz4 snappy 依赖 |
1 引入 bw; |
cmake/rocksdb.cmake
Outdated
@@ -7,8 +7,9 @@ include_guard() | |||
FetchContent_Declare( | |||
rocksdb | |||
GIT_REPOSITORY https://github.com/facebook/rocksdb.git | |||
GIT_TAG v8.6.7 | |||
GIT_TAG v8.3.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不用降低版本
@@ -0,0 +1,681 @@ | |||
#include "env.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
在代码开头加上 license 声明
SequentialFile::~SequentialFile() = default; | ||
|
||
class PosixSequentialFile : public SequentialFile { | ||
private: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一般都是把 private 放到 class 下面,你往下挪动下
// file before reading from it, or for log files, the reading code | ||
// knows enough to skip zero suffixes. | ||
class PosixMmapFile : public WritableFile { | ||
private: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
放到 public 下面
return Status::OK(); | ||
} | ||
|
||
// virtual Status Allocate(off_t offset, off_t len) override { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个为啥要注释掉?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pika里是这么做的,所以这里暂时跟它保持一致
src/pstd/pstd_status.h
Outdated
@@ -0,0 +1,123 @@ | |||
#ifndef __PSTD_STATUS_H__ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 改成 #pragma once; 2 在开头加上 license 声明
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
|
||
#ifndef INCLUDE_STORAGE_VERSION_H_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件就不要了
// LICENSE file in the root directory of this source tree. An additional grant | ||
// of patent rights can be found in the PATENTS file in the same directory. | ||
|
||
#ifndef SRC_BASE_DATA_KEY_FORMAT_H_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改成 pragma once
Co-authored-by: wangxiaoxiong <[email protected]>
* fix string trim function crash * add gtest * add timestamp test,fix Random range error * Optimized trim function,add TrimLeft and TrimRight * fix StringTrimRight range error * Resolve rocksdb and gtest dependency conflicts * fix rocksdb and gtest dependency conflicts,Streamlined rocksdb compilation
…n#40) * complete string appendcmd getsetcmd * complete string mset & mget cmd * fixed some bugs * complete string bitcount cmd * fixed some bugs * five cmd pass simple demo test * feat:fixed some comments
This reverts commit d3dc4fd.
No description provided.