Skip to content

Commit 02be93d

Browse files
author
Aakash Arayambeth
committed
unlock remote table after attempting to create fdb push connector
Signed-off-by: Aakash Arayambeth <[email protected]>
1 parent 2f9ab0e commit 02be93d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: db/fdb_fend.c

+6
Original file line numberDiff line numberDiff line change
@@ -6262,6 +6262,12 @@ static fdb_push_connector_t *fdb_push_connector_create(const char *dbname,
62626262
return NULL;
62636263

62646264
int rc = fdb_get_remote_version(fdb->dbname, tblname, fdb->class, local, &remote_version, &err);
6265+
6266+
if (sqlite3UnlockTable(dbname, tblname)) {
6267+
logmsg(LOGMSG_ERROR, "%s:%d Failed to unlock table %s on db %s\n!!",
6268+
__func__, __LINE__, tblname, dbname);
6269+
}
6270+
62656271
switch (rc) {
62666272
case FDB_NOERR:
62676273
logmsg(LOGMSG_ERROR, "Table %s already exists, ver %llu\n", tblname, remote_version);

0 commit comments

Comments
 (0)