Skip to content

Commit

Permalink
fix: add license
Browse files Browse the repository at this point in the history
  • Loading branch information
longfar-ncy committed Mar 30, 2024
1 parent 450ebae commit b65d217
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
7 changes: 7 additions & 0 deletions src/storage/src/log_index.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Copyright (c) 2024-present, Qihoo, Inc. All rights reserved.
* This source code is licensed under the BSD-style license found in the
* 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.
*/

#include "log_index.h"

#include <cinttypes>
Expand Down
7 changes: 7 additions & 0 deletions src/storage/src/log_index.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
/*
* Copyright (c) 2024-present, Qihoo, Inc. All rights reserved.
* This source code is licensed under the BSD-style license found in the
* 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.
*/

#pragma once

#include <atomic>
Expand Down
14 changes: 5 additions & 9 deletions src/storage/tests/log_index_test.cc
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
#include <filesystem>
#define NDEBUG

#include <atomic>
#include <cstdio>
#include <filesystem>
#include <memory>
#include <string>

#include "fmt/core.h"
#include "gtest/gtest.h"

#include "pstd/log.h"
#include "pstd/thread_pool.h"
#include "rocksdb/db.h"
#include "rocksdb/listener.h"
#include "rocksdb/options.h"

#include "pstd/log.h"
#include "pstd/thread_pool.h"
#include "src/log_index.h"
#include "src/redis.h"
#include "storage/storage.h"
Expand Down Expand Up @@ -219,4 +215,4 @@ TEST_F(LogIndexTest, SimpleTest) { // NOLINT
EXPECT_EQ(res->GetSequenceNumber(), end * 2);
}
}
}
}

0 comments on commit b65d217

Please sign in to comment.