summaryrefslogtreecommitdiff
path: root/src/third_party/wiredtiger/src/schema/schema_drop.c
diff options
context:
space:
mode:
authorLuke Chen <luke.chen@mongodb.com>2022-05-16 00:12:52 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-05-16 00:39:52 +0000
commit136ee14d03553882ee2c763105df831c59e09e5b (patch)
tree4a3ef42653ba68722ac524d63e76e26386b2d1f8 /src/third_party/wiredtiger/src/schema/schema_drop.c
parent3e37098fa76e4882b502bdae02f5341b6d373b68 (diff)
downloadmongo-136ee14d03553882ee2c763105df831c59e09e5b.tar.gz
Import wiredtiger: beb7a695734861b78c3540eba0a055c1c2c7d41a from branch mongodb-master
ref: 91d67b193c..beb7a69573 for: 6.1.0-rc0 WT-9307 Recreating a dropped tiered table that was never flushed panics
Diffstat (limited to 'src/third_party/wiredtiger/src/schema/schema_drop.c')
-rw-r--r--src/third_party/wiredtiger/src/schema/schema_drop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/third_party/wiredtiger/src/schema/schema_drop.c b/src/third_party/wiredtiger/src/schema/schema_drop.c
index 1ce21a7916f..5411f39fe95 100644
--- a/src/third_party/wiredtiger/src/schema/schema_drop.c
+++ b/src/third_party/wiredtiger/src/schema/schema_drop.c
@@ -217,6 +217,7 @@ __drop_tiered(WT_SESSION_IMPL *session, const char *uri, bool force, const char
WT_PREFIX_SKIP_REQUIRED(session, filename, "file:");
WT_ERR(__wt_meta_track_drop(session, filename));
}
+ tiered->tiers[WT_TIERED_INDEX_LOCAL].tier = NULL;
}
/* Close any dhandle and remove any tier: entry from metadata. */
@@ -228,6 +229,7 @@ __drop_tiered(WT_SESSION_IMPL *session, const char *uri, bool force, const char
session, ret = __wt_conn_dhandle_close_all(session, tier->name, true, force)));
WT_ERR(ret);
WT_ERR(__wt_metadata_remove(session, tier->name));
+ tiered->tiers[WT_TIERED_INDEX_SHARED].tier = NULL;
}
/*