Skip to content

Commit 5d059c2

Browse files
committed
Add to utility classes
1 parent 8e2b844 commit 5d059c2

8 files changed

Lines changed: 14 additions & 9 deletions

File tree

include/rocksdb/utilities/backup_engine.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include <vector>
1818

1919
#include "rocksdb/env.h"
20+
#include "rocksdb/port_defs.h"
2021
#include "rocksdb/io_status.h"
2122
#include "rocksdb/metadata.h"
2223
#include "rocksdb/options.h"
@@ -693,7 +694,7 @@ class BackupEngineAppendOnlyBase {
693694
// unspec = Behavior is unspecified, including possibly trashing the
694695
// backup_dir, but is "memory safe" (no C++ undefined behavior)
695696
//
696-
class BackupEngine : public BackupEngineReadOnlyBase,
697+
class ROCKSDB_API BackupEngine : public BackupEngineReadOnlyBase,
697698
public BackupEngineAppendOnlyBase {
698699
public:
699700
virtual ~BackupEngine() {}

include/rocksdb/utilities/checkpoint.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <string>
1111
#include <vector>
1212

13+
#include "rocksdb/port_defs.h"
1314
#include "rocksdb/status.h"
1415

1516
namespace ROCKSDB_NAMESPACE {
@@ -19,7 +20,7 @@ class ColumnFamilyHandle;
1920
struct LiveFileMetaData;
2021
struct ExportImportFilesMetaData;
2122

22-
class Checkpoint {
23+
class ROCKSDB_API Checkpoint {
2324
public:
2425
// Creates a Checkpoint object to be used for creating openable snapshots
2526
static Status Create(DB* db, Checkpoint** checkpoint_ptr);

include/rocksdb/utilities/optimistic_transaction_db.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ struct OptimisticTransactionDBOptions {
8484

8585
// Range deletions (including those in `WriteBatch`es passed to `Write()`) are
8686
// incompatible with `OptimisticTransactionDB` and will return a non-OK `Status`
87-
class OptimisticTransactionDB : public StackableDB {
87+
class ROCKSDB_API OptimisticTransactionDB : public StackableDB {
8888
public:
8989
// Open an OptimisticTransactionDB similar to DB::Open().
9090
static Status Open(const Options& options, const std::string& dbname,

include/rocksdb/utilities/transaction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class TransactionNotifier {
133133
// TODO(agiardullo): Not yet implemented
134134
// -PerfContext statistics
135135
// -Support for using Transactions with DBWithTTL
136-
class Transaction {
136+
class ROCKSDB_API Transaction {
137137
public:
138138
// No copying allowed
139139
Transaction(const Transaction&) = delete;

include/rocksdb/utilities/transaction_db.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ struct DeadlockPath {
494494
bool empty() { return path.empty() && !limit_exceeded; }
495495
};
496496

497-
class TransactionDB : public StackableDB {
497+
class ROCKSDB_API TransactionDB : public StackableDB {
498498
public:
499499
// Optimized version of ::Write that receives more optimization request such
500500
// as skip_concurrency_control.

include/rocksdb/utilities/write_batch_with_index.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#include "rocksdb/comparator.h"
1818
#include "rocksdb/iterator.h"
19+
#include "rocksdb/port_defs.h"
1920
#include "rocksdb/slice.h"
2021
#include "rocksdb/status.h"
2122
#include "rocksdb/write_batch.h"
@@ -52,7 +53,7 @@ struct WriteEntry {
5253
};
5354

5455
// Iterator of one column family out of a WriteBatchWithIndex.
55-
class WBWIIterator {
56+
class ROCKSDB_API WBWIIterator {
5657
public:
5758
virtual ~WBWIIterator() {}
5859

@@ -103,7 +104,7 @@ class WBWIIterator {
103104
// user can call NewIterator() to create an iterator.
104105
// If there are multiple updates to the same key, the most recent update is
105106
// ordered first (i.e. the iterator will return the most recent update first).
106-
class WriteBatchWithIndex : public WriteBatchBase {
107+
class ROCKSDB_API WriteBatchWithIndex : public WriteBatchBase {
107108
public:
108109
// backup_index_comparator: the backup comparator used to compare keys
109110
// within the same column family, if column family is not given in the

include/rocksdb/write_batch.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <string>
3333
#include <unordered_map>
3434

35+
#include "rocksdb/port_defs.h"
3536
#include "rocksdb/status.h"
3637
#include "rocksdb/write_batch_base.h"
3738

@@ -61,7 +62,7 @@ struct SavePoint {
6162
bool is_cleared() const { return (size | count | content_flags) == 0; }
6263
};
6364

64-
class WriteBatch : public WriteBatchBase {
65+
class ROCKSDB_API WriteBatch : public WriteBatchBase {
6566
public:
6667
explicit WriteBatch(size_t reserved_bytes = 0, size_t max_bytes = 0)
6768
: WriteBatch(reserved_bytes, max_bytes, 0, 0) {}

include/rocksdb/write_batch_base.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include <cstddef>
1212

1313
#include "rocksdb/attribute_groups.h"
14+
#include "rocksdb/port_defs.h"
1415
#include "rocksdb/rocksdb_namespace.h"
1516

1617
namespace ROCKSDB_NAMESPACE {
@@ -24,7 +25,7 @@ struct SliceParts;
2425
// Abstract base class that defines the basic interface for a write batch.
2526
// See WriteBatch for a basic implementation and WrithBatchWithIndex for an
2627
// indexed implementation.
27-
class WriteBatchBase {
28+
class ROCKSDB_API WriteBatchBase {
2829
public:
2930
virtual ~WriteBatchBase() {}
3031

0 commit comments

Comments
 (0)