diff --git a/src/blockstore_write.cpp b/src/blockstore_write.cpp index 2a8b6b47..07a3b61f 100644 --- a/src/blockstore_write.cpp +++ b/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)