@@ -778,7 +778,7 @@ void Transaction::ScheduleInternal() {
778778 shard_set->Add (unique_shard_id_, &Transaction::ScheduleBatchInShard);
779779 }
780780 } else {
781- auto cb = [&schedule_ctx]( unsigned ) {
781+ auto cb = [&schedule_ctx] {
782782 if (!schedule_ctx.trans ->ScheduleInShard (EngineShard::tlocal (),
783783 schedule_ctx.optimistic_execution )) {
784784 schedule_ctx.fail_cnt .fetch_add (1 , memory_order_relaxed);
@@ -824,8 +824,7 @@ void Transaction::ScheduleInternal() {
824824 // See https://github.com/dragonflydb/dragonfly/issues/150 for more info.
825825 if (should_poll_execution.load (memory_order_relaxed)) {
826826 IterateActiveShards ([](const auto & sd, auto i) {
827- shard_set->Add (
828- i, [](unsigned ) { EngineShard::tlocal ()->PollExecution (" cancel_cleanup" , nullptr ); });
827+ shard_set->Add (i, [] { EngineShard::tlocal ()->PollExecution (" cancel_cleanup" , nullptr ); });
829828 });
830829 }
831830 InitTxTime (); // update time for next scheduling attempt
@@ -855,7 +854,7 @@ void Transaction::UnlockMulti() {
855854 DCHECK_EQ (shard_data_.size (), shard_set->size ());
856855 for (ShardId i = 0 ; i < shard_data_.size (); ++i) {
857856 vector<LockFp> fps = std::move (sharded_keys[i]);
858- shard_set->Add (i, [this , fps = std::move (fps)]( unsigned ) {
857+ shard_set->Add (i, [this , fps = std::move (fps)] {
859858 this ->UnlockMultiShardCb (fps, EngineShard::tlocal ());
860859 intrusive_ptr_release (this );
861860 });
@@ -941,7 +940,7 @@ void Transaction::DispatchHop() {
941940
942941 use_count_.fetch_add (run_cnt, memory_order_relaxed); // for each pointer from poll_cb
943942
944- auto poll_cb = [this ]( unsigned ) {
943+ auto poll_cb = [this ] {
945944 CHECK (namespace_ != nullptr );
946945 EngineShard::tlocal ()->PollExecution (" exec_cb" , this );
947946 DVLOG (3 ) << " ptr_release " << DebugId ();
@@ -1015,7 +1014,7 @@ void Transaction::ExpireBlocking(WaitKeys wkeys) {
10151014 DVLOG (1 ) << " ExpireBlocking " << DebugId ();
10161015 run_barrier_.Start (unique_shard_cnt_);
10171016
1018- auto expire_cb = [this , &wkeys]( unsigned ) {
1017+ auto expire_cb = [this , &wkeys] {
10191018 EngineShard* es = EngineShard::tlocal ();
10201019 if (wkeys) {
10211020 IndexSlice is (0 , 1 );
@@ -1186,7 +1185,7 @@ bool Transaction::ScheduleInShard(EngineShard* shard, bool execute_optimistic) {
11861185 return true ;
11871186}
11881187
1189- void Transaction::ScheduleBatchInShard (unsigned ) {
1188+ void Transaction::ScheduleBatchInShard () {
11901189 EngineShard* shard = EngineShard::tlocal ();
11911190 auto & stats = shard->stats ();
11921191 stats.tx_batch_schedule_calls_total ++;
0 commit comments