commit - 94d2813841a649d5254974dd921aed01af1b24d4
commit + d9e0b58aac518b4ac2d6df57c450b9ccacb40933
blob - 01ae6f506c72cf352322e3f0c9655c5e63ecd05c
blob + 1e2cecf49fdeb624efcb8c5b4e818d908e1298a5
--- src/box/alter.cc
+++ src/box/alter.cc
key_def))
diag_raise();
}
- if (!tuple_format1_can_store_format2_tuples(new_format,
- old_format))
- space_check_format_with_yield(old_space, new_format);
+ space_check_format_with_yield(old_space, new_format);
}
}
blob - b9b7f5e1dffd898e26a4bd7dd30753c914c08ac7
blob + 6cbb56581efe35e59fab356fec97fb85c1c4f649
--- src/box/memtx_space.c
+++ src/box/memtx_space.c
{
struct txn *txn = in_txn();
+ if (tuple_format1_can_store_format2_tuples(format, space->format))
+ return 0;
if (space->index_count == 0)
return 0;
struct index *pk = space->index[0];
blob - 2eddaebb954dbf34847e06d17fcd137186c605be
blob + fcd3c69fc6e56e079ba87a25208bf14bea8e5cd6
--- src/box/vinyl.c
+++ src/box/vinyl.c
struct vy_env *env = vy_env(space->engine);
struct txn *txn = in_txn();
+ if (tuple_format1_can_store_format2_tuples(format, space->format))
+ return 0;
/*
* If this is local recovery, the space was checked before
* restart so there's nothing we need to do.