diff --git a/test/vinyl/select_consistency.result b/test/vinyl/select_consistency.result index 537f061346b27e99422e66d07424435d7c5b1dac..c8f19cac8e829aed67243c86f6715c4008373bd6 100644 --- a/test/vinyl/select_consistency.result +++ b/test/vinyl/select_consistency.result @@ -10,13 +10,13 @@ math.randomseed(os.time()) s = box.schema.space.create('test', {engine = 'vinyl'}) --- ... -_ = s:create_index('pk', {parts = {1, 'unsigned'}}) +_ = s:create_index('pk', {parts = {1, 'unsigned'}, page_size = 64, range_size = 256}) --- ... -_ = s:create_index('i1', {unique = true, parts = {2, 'unsigned', 3, 'unsigned'}}) +_ = s:create_index('i1', {unique = true, parts = {2, 'unsigned', 3, 'unsigned'}, page_size = 64, range_size = 256}) --- ... -_ = s:create_index('i2', {unique = true, parts = {2, 'unsigned', 4, 'unsigned'}}) +_ = s:create_index('i2', {unique = true, parts = {2, 'unsigned', 4, 'unsigned'}, page_size = 64, range_size = 256}) --- ... -- @@ -29,13 +29,16 @@ MAX_KEY = 100 MAX_VAL = 10 --- ... +PADDING = string.rep('x', 100) +--- +... test_run:cmd("setopt delimiter ';'") --- - true ... function gen_insert() pcall(s.insert, s, {math.random(MAX_KEY), math.random(MAX_VAL), - math.random(MAX_VAL), math.random(MAX_VAL), 1}) + math.random(MAX_VAL), math.random(MAX_VAL), PADDING}) end; --- ... diff --git a/test/vinyl/select_consistency.test.lua b/test/vinyl/select_consistency.test.lua index c29cb8aca5cee4aee6855482e02c18ced7f12fb1..90fcf67e8ec0f56ebf6f77baf99344c03a7eba1b 100644 --- a/test/vinyl/select_consistency.test.lua +++ b/test/vinyl/select_consistency.test.lua @@ -5,9 +5,9 @@ fiber = require 'fiber' math.randomseed(os.time()) s = box.schema.space.create('test', {engine = 'vinyl'}) -_ = s:create_index('pk', {parts = {1, 'unsigned'}}) -_ = s:create_index('i1', {unique = true, parts = {2, 'unsigned', 3, 'unsigned'}}) -_ = s:create_index('i2', {unique = true, parts = {2, 'unsigned', 4, 'unsigned'}}) +_ = s:create_index('pk', {parts = {1, 'unsigned'}, page_size = 64, range_size = 256}) +_ = s:create_index('i1', {unique = true, parts = {2, 'unsigned', 3, 'unsigned'}, page_size = 64, range_size = 256}) +_ = s:create_index('i2', {unique = true, parts = {2, 'unsigned', 4, 'unsigned'}, page_size = 64, range_size = 256}) -- -- If called from a transaction, i1:select({k}) and i2:select({k}) @@ -16,12 +16,13 @@ _ = s:create_index('i2', {unique = true, parts = {2, 'unsigned', 4, 'unsigned'}} MAX_KEY = 100 MAX_VAL = 10 +PADDING = string.rep('x', 100) test_run:cmd("setopt delimiter ';'") function gen_insert() pcall(s.insert, s, {math.random(MAX_KEY), math.random(MAX_VAL), - math.random(MAX_VAL), math.random(MAX_VAL), 1}) + math.random(MAX_VAL), math.random(MAX_VAL), PADDING}) end; function gen_delete()