Browse Source

Merge pull request #13 from lnsyyj/wip-vitastor-debug

fix BLOCKSTORE_DEBUG, error: ‘dirty_it’ was not declared in this scope
master
Vitaliy Filippov 2 weeks ago
committed by GitHub
parent
commit
712576ca75
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/blockstore_write.cpp

6
src/blockstore_write.cpp

@ -478,15 +478,15 @@ resume_2:
}
resume_4:
// Switch object state
#ifdef BLOCKSTORE_DEBUG
printf("Ack write %lx:%lx v%lu = state 0x%x\n", op->oid.inode, op->oid.stripe, op->version, dirty_it->second.state);
#endif
{
auto dirty_it = dirty_db.find((obj_ver_id){
.oid = op->oid,
.version = op->version,
});
assert(dirty_it != dirty_db.end());
#ifdef BLOCKSTORE_DEBUG
printf("Ack write %lx:%lx v%lu = state 0x%x\n", op->oid.inode, op->oid.stripe, op->version, dirty_it->second.state);
#endif
bool is_big = (dirty_it->second.state & BS_ST_TYPE_MASK) == BS_ST_BIG_WRITE;
bool imm = is_big ? (immediate_commit == IMMEDIATE_ALL) : (immediate_commit != IMMEDIATE_NONE);
if (imm)

Loading…
Cancel
Save