diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2016-01-20 15:00:41 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2016-01-20 15:00:41 +1100 |
commit | 1c2c30952129c4ef3db28f960e4a2d1d60693753 (patch) | |
tree | 717c5a272e8acc4ce139b0c567e12a379240398f /src/schema | |
parent | c7c4e74fcfaffb3ad711bfd2624607264b0332bb (diff) | |
download | mongo-1c2c30952129c4ef3db28f960e4a2d1d60693753.tar.gz |
WT-2295 Revert exclusive checking for tables.
Diffstat (limited to 'src/schema')
-rw-r--r-- | src/schema/schema_create.c | 5 |
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)); |