Merge "snapuserd: use local buffers for xor processing during sync I/O" into main

This commit is contained in:
Akilesh Kailash 2023-07-21 22:18:21 +00:00 committed by Gerrit Code Review
commit da2fc1c6af
2 changed files with 2 additions and 2 deletions

View file

@ -308,7 +308,7 @@ bool SnapshotHandler::Start() {
ra_thread_status =
std::async(std::launch::async, &ReadAhead::RunThread, read_ahead_thread_.get());
SNAP_LOG(INFO) << "Read-ahead thread started...";
SNAP_LOG(INFO) << "Read-ahead thread started";
}
// Launch worker threads

View file

@ -592,7 +592,7 @@ bool ReadAhead::ReadAheadSyncIO() {
// Check if this block is an XOR op
if (xor_op->new_block == new_block) {
// Read the xor'ed data from COW
void* buffer = bufsink_.GetPayloadBuffer(BLOCK_SZ);
void* buffer = bufsink.GetPayloadBuffer(BLOCK_SZ);
if (!buffer) {
SNAP_LOG(ERROR) << "ReadAhead - failed to allocate buffer";
return false;