diff options
author | Chenhao Qu <chenhao.qu@mongodb.com> | 2022-02-03 12:35:30 +1100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-03 04:00:32 +0000 |
commit | 3b73633480220630507435a4edc3fb141739e93c (patch) | |
tree | f9c82681cd51d33b1384d2b77633984048906c4b /src/third_party/wiredtiger/src/schema/schema_drop.c | |
parent | 76e19e92235e3d8813a249e3d064c02c847a4595 (diff) | |
download | mongo-3b73633480220630507435a4edc3fb141739e93c.tar.gz |
Import wiredtiger: 4e90eef9aa6cab548252d137b5fd899293cba11b from branch mongodb-master
ref: 6bfcab58b3..4e90eef9aa
for: 5.3.0
WT-8756 Add null check when dropping a tier, and add tiered storage tests
Diffstat (limited to 'src/third_party/wiredtiger/src/schema/schema_drop.c')
-rw-r--r-- | src/third_party/wiredtiger/src/schema/schema_drop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/third_party/wiredtiger/src/schema/schema_drop.c b/src/third_party/wiredtiger/src/schema/schema_drop.c index 50e02192507..a1420755926 100644 --- a/src/third_party/wiredtiger/src/schema/schema_drop.c +++ b/src/third_party/wiredtiger/src/schema/schema_drop.c @@ -234,7 +234,7 @@ __drop_tiered(WT_SESSION_IMPL *session, const char *uri, bool force, const char WT_ERR(__wt_tiered_name(session, &tiered->iface, i, WT_TIERED_NAME_OBJECT, &name)); __wt_verbose(session, WT_VERB_TIERED, "DROP_TIERED: remove object %s from metadata", name); WT_ERR_NOTFOUND_OK(__wt_metadata_remove(session, name), false); - if (remove_files) + if (remove_files && tier != NULL) WT_TRET(__wt_meta_track_drop(session, tier->name)); __wt_free(session, name); } |