File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1296,7 +1296,6 @@ PHP_METHOD(Tarantool, reconnect) {
1296
1296
static int __tarantool_authenticate (tarantool_connection * obj ) {
1297
1297
TSRMLS_FETCH ();
1298
1298
1299
- tarantool_schema_flush (obj -> schema );
1300
1299
tarantool_tp_update (obj -> tps );
1301
1300
int batch_count = 3 ;
1302
1301
size_t pass_len = (obj -> url_parsed -> pass ? strlen (obj -> url_parsed -> pass ) : 0 );
@@ -1344,7 +1343,9 @@ static int __tarantool_authenticate(tarantool_connection *obj) {
1344
1343
status = FAILURE ;
1345
1344
}
1346
1345
if (status != FAILURE ) {
1347
- if (resp .sync == space_sync && tarantool_schema_add_spaces (
1346
+ if (resp .sync == auth_sync ) {
1347
+ tarantool_schema_flush (obj -> schema );
1348
+ } else if (resp .sync == space_sync && tarantool_schema_add_spaces (
1348
1349
obj -> schema ,
1349
1350
resp .data ,
1350
1351
resp .data_len ) == -1 ) {
You can’t perform that action at this time.
0 commit comments