Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
PG::~PG() {}
bool PG::try_flush_or_schedule_async() {
- logger().debug("PG::try_flush_or_schedule_async: do_transaction...");
+ logger().debug("PG::try_flush_or_schedule_async: flush ...");
(void)shard_services.get_store().flush(
coll_ref
).then(
seastar::future<> ShardServices::dispatch_context_transaction(
crimson::os::CollectionRef col, PeeringCtx &ctx) {
- logger().debug("ShardServices::dispatch_context_transaction: do_transaction...");
+ if (ctx.transaction.empty()) {
+ logger().debug("ShardServices::dispatch_context_transaction: empty transaction");
+ return seastar::now();
+ }
+
+ logger().debug("ShardServices::dispatch_context_transaction: do_transaction ...");
auto ret = store.do_transaction(
col,
std::move(ctx.transaction));