Skip to content

Commit

Permalink
Do not call self.namespace_recycle_safe in grpc.py
Browse files Browse the repository at this point in the history
Signed-off-by: Leonid Chernin <[email protected]>
  • Loading branch information
Leonid Chernin committed Apr 17, 2024
1 parent 67c7bd1 commit 297e36e
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions control/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,13 +868,6 @@ def set_ana_state_safe(self, ana_info: pb2.ana_info, context=None):
context.set_code(grpc.StatusCode.INTERNAL)
context.set_details(f"{ex}")
return pb2.req_status()
for ana_key in inaccessible_ana_groups :
with self.omap_lock(context=context):
ret_recycle = self.namespace_recycle_safe(ana_key, peer_msg)
if ret_recycle != 0:
errmsg = f"Failure recycle namespaces of ana group {ana_key} "
self.logger.error(errmsg)
return pb2.req_status(status=ret_recycle , error_message=errmsg)
return pb2.req_status(status=True)

def choose_anagrpid_for_namespace(self, nsid) ->int:
Expand Down

0 comments on commit 297e36e

Please sign in to comment.