Skip to content

Commit

Permalink
DB update
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav-shchetinin committed Oct 13, 2024
1 parent aaa6763 commit 550e326
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ydb/core/mind/node_broker__decommission_node.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "node_broker_impl.h"
#include "node_broker__scheme.h"

#include <ydb/core/base/appdata.h>
#include <ydb/core/protos/counters_node_broker.pb.h>

namespace NKikimr {
namespace NNodeBroker {

Expand Down Expand Up @@ -55,6 +55,11 @@ class TNodeBroker::TTxDecommissionNode : public TTransactionBase<TNodeBroker> {

if (Self->EnableDecomissionNode) {
Self->SlotIndexesPools[node.ServicedSubDomain].Release(node.SlotIndex.value());

NIceDb::TNiceDb db(txc.DB);
using T = Schema::Nodes;
db.Table<T>().Key(node.NodeId)
.UpdateToNull<T::SlotIndex>();
}
return true;
}
Expand Down

0 comments on commit 550e326

Please sign in to comment.