Skip to content
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

Closed
wants to merge 14 commits into from

Conversation

Centurybbx
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added the ✏️ Feature New feature or request label Nov 23, 2023
src/pstd/env.h Outdated
@@ -0,0 +1,157 @@
#ifndef __PSTD_ENV_H__
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#ifndef 改成 #pragma once 吧 和前面统一

// non-const method, all threads accessing the same Slice must use
// external synchronization.

#ifndef __PSTD_SLICE_H__
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pstd_slice.hpstd_status.h 这两个文件之前就移植过来了, 只是名字没加pstd_ 这个前缀, 可以把原来的文件重命名一下

@@ -0,0 +1,177 @@
// Copyright (c) 2017-present The storage Authors. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

修改为正确的版权声明

@AlexStocks
Copy link
Contributor

QX:注意添加 lz4 snappy 依赖

@AlexStocks
Copy link
Contributor

1 引入 bw;
2 借鉴 floyd,在一个 RocksDB 中通过 cf 替代 多 RocksDB

@@ -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
Copy link
Contributor

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"
Copy link
Contributor

@AlexStocks AlexStocks Nov 27, 2023

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:
Copy link
Contributor

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:
Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个为啥要注释掉?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pika里是这么做的,所以这里暂时跟它保持一致

@@ -0,0 +1,123 @@
#ifndef __PSTD_STATUS_H__
Copy link
Contributor

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_
Copy link
Contributor

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_
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

改成 pragma once

baerwang and others added 10 commits November 27, 2023 19:01
* 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
@github-actions github-actions bot added the 📒 Documentation Improvements or additions to documentation label Nov 27, 2023
@Centurybbx Centurybbx closed this Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📒 Documentation Improvements or additions to documentation ✏️ Feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants