bug(snapshot) : Do not preempt inside OnDbChange issue #829 (#868)

* bug(snapshot) : Do not preempt inside OnDbChange

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2023-02-26 11:52:13 +02:00 committed by GitHub
parent 90233bfdc8
commit 4b44fb6baf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 50 additions and 109 deletions

View file

@ -90,10 +90,6 @@ JournalReader::JournalReader(io::Source* source, DbIndex dbid)
: source_{source}, buf_{4_KB}, dbid_{dbid} {
}
void JournalReader::SetDb(DbIndex dbid) {
dbid_ = dbid;
}
void JournalReader::SetSource(io::Source* source) {
CHECK_EQ(buf_.InputLen(), 0ULL);
source_ = source;