Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style fix
Browse files Browse the repository at this point in the history
Required-githooks: true
Signed-off-by: Wang Shilong <[email protected]>
Wang Shilong committed Jan 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent dc3becf commit b536629
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/container/srv_container.c
Original file line number Diff line number Diff line change
@@ -1557,22 +1557,22 @@ cont_destroy(struct rdb_tx *tx, struct ds_pool_hdl *pool_hdl,

cont_ec_agg_delete(cont->c_svc, cont->c_uuid);

if (pool_hdl->sph_global_ver >= DAOS_POOL_GLOBAL_VERSION_WITH_OIT_OID_KVS) {
need_destroy_oid_oit_kvs = true;
} else {
d_iov_t value;

d_iov_set(&value, NULL, 0);
rc = rdb_tx_lookup(tx, &cont->c_prop, &ds_cont_prop_oit_oids, &value);
if (rc && rc != -DER_NONEXIST) {
DL_ERROR(rc, "failed to lookup oit oid kvs pool/cont: " DF_CONTF,
DP_CONT(pool_hdl->sph_pool->sp_uuid, cont->c_uuid));
goto out_prop;
}
/* There was a bug that oit oids might be created already see DAOS-14799 */
if (pool_hdl->sph_global_ver >= DAOS_POOL_GLOBAL_VERSION_WITH_OIT_OID_KVS) {
need_destroy_oid_oit_kvs = true;
} else {
d_iov_t value;

d_iov_set(&value, NULL, 0);
rc = rdb_tx_lookup(tx, &cont->c_prop, &ds_cont_prop_oit_oids, &value);
if (rc && rc != -DER_NONEXIST) {
DL_ERROR(rc, "failed to lookup oit oid kvs pool/cont: " DF_CONTF,
DP_CONT(pool_hdl->sph_pool->sp_uuid, cont->c_uuid));
goto out_prop;
}
/* There was a bug that oit oids might be created already see DAOS-14799 */
if (rc == 0)
need_destroy_oid_oit_kvs = true;
}
}

/* Destroy oit oids index KVS. */
if (need_destroy_oid_oit_kvs) {

0 comments on commit b536629

Please sign in to comment.