Skip to content

Commit

Permalink
Fix titan bugs (facebook#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianZheng committed Dec 10, 2018
1 parent d835840 commit 7b93152
Show file tree
Hide file tree
Showing 21 changed files with 3,567 additions and 138 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ TOOLS = \
rocksdb_dump \
rocksdb_undump \
blob_dump \
titandb_stress \

TEST_LIBS = \
librocksdb_env_basic_test.a
Expand Down Expand Up @@ -1054,6 +1055,9 @@ memtablerep_bench: memtable/memtablerep_bench.o $(LIBOBJECTS) $(TESTUTIL)
db_stress: tools/db_stress.o $(LIBOBJECTS) $(TESTUTIL)
$(AM_LINK)

titandb_stress: tools/titandb_stress.o $(LIBOBJECTS) $(TESTUTIL)
$(AM_LINK)

write_stress: tools/write_stress.o $(LIBOBJECTS) $(TESTUTIL)
$(AM_LINK)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ class TitanDB : public StackableDB {
const Slice& /*value*/) override {
return Status::NotSupported("TitanDB doesn't support this operation");
}

using rocksdb::StackableDB::SingleDelete;
virtual Status SingleDelete(const WriteOptions& /*wopts*/,
ColumnFamilyHandle* /*column_family*/,
const Slice& /*key*/) override {
return Status::NotSupported("Not supported operation in titan db.");
}
};

} // namespace titandb
Expand Down
Loading

0 comments on commit 7b93152

Please sign in to comment.