Previously, ctx->at_version would be the same as ctx->obs->oi.version
leading to the log entry having prior_version == version.
This bug was introduced in
d1b85e06fb5ce1cfd5bbc74ba639811b92033909.
Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
t->collection_add(coll_t(info.pgid, newsnaps[newsnaps.size()-1]), coll_t(info.pgid), coid);
}
- ctx->log.push_back(Log::Entry(Log::Entry::MODIFY, coid, ctx->at_version, ctx->obs->oi.version,
+ ctx->log.push_back(Log::Entry(Log::Entry::MODIFY, coid, coi.version, coi.prior_version,
osd_reqid_t(), ctx->mtime));
ctx->at_version.version++;
}