Merge "snapuserd: use local buffers for xor processing during sync I/O" into main
This commit is contained in:
commit
da2fc1c6af
2 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue