Skip to content

Commit

Permalink
Merge pull request #776 from openvstorage/fix-objects-leak
Browse files Browse the repository at this point in the history
fix object leak when deleting a global namespace
  • Loading branch information
domsj authored Aug 8, 2017
2 parents c17d657 + 18f2ebb commit 08bae27
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion ocaml/src/maintenance.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1473,7 +1473,17 @@ class client ?(retry_timeout = 60.)
Exn (Assert_failed "NotMyTask") |> Lwt.fail
else inner next
in
inner (Slice.wrap_string ""))
inner (Slice.wrap_string "") >>= fun () ->

client # global_kvs # apply_sequence
(osd_access # get_default_osd_priority)
[]
[ Osd.Update.delete_string (Osd_keys.AlbaInstance.namespace_status ~namespace_id);
Osd.Update.delete_string (Osd_keys.AlbaInstance.namespace_name ~namespace_id);
] >>= function
| Ok _ -> Lwt.return_unit
| Error _ -> assert false
)
| CleanupNamespaceOsd (namespace_id, osd_id) ->
Lwt.catch
(fun () ->
Expand Down

0 comments on commit 08bae27

Please sign in to comment.