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 @@ -1184,7 +1184,6 @@ PHP_METHOD(Tarantool, reconnect) {
1184
1184
static int __tarantool_authenticate (tarantool_connection * obj ) {
1185
1185
TSRMLS_FETCH ();
1186
1186
1187
- tarantool_schema_flush (obj -> schema );
1188
1187
tarantool_tp_update (obj -> tps );
1189
1188
int batch_count = 3 ;
1190
1189
size_t passwd_len = (obj -> passwd ? strlen (obj -> passwd ) : 0 );
@@ -1232,7 +1231,9 @@ static int __tarantool_authenticate(tarantool_connection *obj) {
1232
1231
status = FAILURE ;
1233
1232
}
1234
1233
if (status != FAILURE ) {
1235
- if (resp .sync == space_sync && tarantool_schema_add_spaces (
1234
+ if (resp .sync == auth_sync ) {
1235
+ tarantool_schema_flush (obj -> schema );
1236
+ } else if (resp .sync == space_sync && tarantool_schema_add_spaces (
1236
1237
obj -> schema ,
1237
1238
resp .data ,
1238
1239
resp .data_len ) == -1 ) {
You can’t perform that action at this time.
0 commit comments