summaryrefslogtreecommitdiff
path: root/src/schema
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2016-01-20 15:00:41 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2016-01-20 15:00:41 +1100
commit1c2c30952129c4ef3db28f960e4a2d1d60693753 (patch)
tree717c5a272e8acc4ce139b0c567e12a379240398f /src/schema
parentc7c4e74fcfaffb3ad711bfd2624607264b0332bb (diff)
downloadmongo-1c2c30952129c4ef3db28f960e4a2d1d60693753.tar.gz
WT-2295 Revert exclusive checking for tables.
Diffstat (limited to 'src/schema')
-rw-r--r--src/schema/schema_create.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/schema/schema_create.c b/src/schema/schema_create.c
index cf6793b0c90..8cdcbbcad54 100644
--- a/src/schema/schema_create.c
+++ b/src/schema/schema_create.c
@@ -595,8 +595,11 @@ __create_table(WT_SESSION_IMPL *session,
return (EINVAL);
if ((ret = __wt_schema_get_table(session,
- tablename, strlen(tablename), false, &table)) == 0)
+ tablename, strlen(tablename), false, &table)) == 0) {
+ if (exclusive)
+ WT_ERR(EEXIST);
exists = true;
+ }
WT_RET_NOTFOUND_OK(ret);
WT_ERR(__wt_config_gets(session, cfg, "colgroups", &cval));