Skip to content

Commit

Permalink
remove temporary Poison status
Browse files Browse the repository at this point in the history
  • Loading branch information
seckcoder committed Oct 12, 2023
1 parent 5254c7e commit 13324c5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 16 deletions.
3 changes: 0 additions & 3 deletions include/rocksdb/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -1305,9 +1305,6 @@ class DB {
// families that were deleted as a result of ApplyReplicationLogRecord()
// call, if any.
std::vector<uint32_t> deleted_column_families;

// record number of mismatched epoch number found
uint64_t mismatched_epoch_num{0};
};
// ApplyReplicationLogRecord() applies the replication record provided by the
// leader's ReplicationLogListener. Info contains some useful information
Expand Down
10 changes: 0 additions & 10 deletions include/rocksdb/status.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ class Status {
kTryAgain = 13,
kCompactionTooLarge = 14,
kColumnFamilyDropped = 15,
// Temporary status code for rocksdb upgrade
kPoison = 100,
kMaxCode
};

Expand Down Expand Up @@ -179,9 +177,6 @@ class Status {
static Status Corruption(SubCode msg = kNone) {
return Status(kCorruption, msg);
}
static Status Poison(const Slice& msg, const Slice& msg2 = Slice()) {
return Status(kPoison, msg, msg2);
}

static Status NotSupported(const Slice& msg, const Slice& msg2 = Slice()) {
return Status(kNotSupported, msg, msg2);
Expand Down Expand Up @@ -317,11 +312,6 @@ class Status {
return code() == kCorruption;
}

bool IsPoison() const {
MarkChecked();
return code() == kPoison;
}

// Returns true iff the status indicates a NotSupported error.
bool IsNotSupported() const {
MarkChecked();
Expand Down
3 changes: 0 additions & 3 deletions util/status.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@ std::string Status::ToString() const {
case kMaxCode:
assert(false);
break;
case kPoison:
type = "Poison: ";
break;
}
char tmp[30];
if (type == nullptr) {
Expand Down

0 comments on commit 13324c5

Please sign in to comment.