This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/box/alter.cc b/src/box/alter.cc | |
index e209f16..1326551 100644 | |
--- a/src/box/alter.cc | |
+++ b/src/box/alter.cc | |
@@ -1388,7 +1388,7 @@ on_replace_dd_index(struct trigger * /* trigger */, void *event) | |
auto lock_guard = make_scoped_guard([&]{ latch_unlock(&schema_lock); }); | |
struct txn *txn = (struct txn *) event; | |
- txn_check_autocommit(txn, "Space _index"); | |
+ /* txn_check_autocommit(txn, "Space _index"); */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env tarantool | |
-- Simple Lint: check for unintended globals | |
-- | |
-- One can spot all globals by checking the bytecode: | |
-- search for GSET and GGET instructions. Based on jit/bc.lua | |
local function is_main() | |
return debug.getinfo(2).what == "main" and pcall(debug.getlocal, 5, 1) == false | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/blikh/src/work/tarantool/src/box/vinyl.c:1169:1: warning: unused function 'read_set_first' [-Wunused-function] [161/1827] | |
rb_gen_ext_key(static inline, read_set_, read_set_t, struct txv, in_read_set, | |
^ | |
/Users/blikh/src/work/tarantool/src/lib/small/small/rb.h:354:24: note: expanded from macro 'rb_gen_ext_key' | |
a_attr a_type * \ | |
^ | |
<scratch space>:37:1: note: expanded from here | |
read_set_first | |
^ | |
/Users/blikh/src/work/tarantool/src/box/vinyl.c:1169:1: warning: unused function 'read_set_last' [-Wunused-function] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::io; | |
use std::boxed::Box; | |
use std::vec::Vec; | |
use std::path::Path; | |
use std::time::Duration; | |
use std::net::TcpStream; | |
#[cfg(unix)] | |
use unix_socket::UnixStream; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/box/sql/sqliteLimit.h b/src/box/sql/sqliteLimit.h | |
index 1acbe1e38..d7ce87bc7 100644 | |
--- a/src/box/sql/sqliteLimit.h | |
+++ b/src/box/sql/sqliteLimit.h | |
@@ -219,4 +219,4 @@ | |
** number of entities (in chain of compiling trigger programs) should be less than | |
** 40 or stack guard will be triggered. | |
*/ | |
-#define SQL_MAX_COMPILING_TRIGGERS 40 | |
+#define SQL_MAX_COMPILING_TRIGGERS 30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bauth.lua | |
style: | |
* Форматировать не помещающиеся на одну строку массивы как в bauth.lua:31 | |
(например bauth.lua:71) | |
* Никаких пробелов в конце строки | |
* в случае массивов на одной строке - оставлять пробел после первой и до послей | |
скобки | |
* стоит избегать использование {} вместо ({}) в вызовах функций. Кроме | |
сушествующих идиом (box.cfg{}/ffi.cdef[[]]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
website-full-deploy: | |
tags: | |
- docker | |
image: "registry.gitlab.com/tarantool/doc" | |
script: | |
- cmake . && make | |
- echo ${RSYNC_PASSWORD} > rsync.password | |
- chmod 600 rsync.password | |
- rsync -Pav --password-file=rsync.password output/ | |
${RSYNC_USER}@${RSYNC_HOST}::tarantool-org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Formula/tarantool-nginx-module.rb b/Formula/tarantool-nginx-module.rb | |
index e6a9928..09eb1ef 100644 | |
--- a/Formula/tarantool-nginx-module.rb | |
+++ b/Formula/tarantool-nginx-module.rb | |
@@ -1,16 +1,17 @@ | |
class TarantoolNginxModule < Formula | |
desc "Tarantool upstream for nginx" | |
homepage "https://github.com/tarantool/nginx_upstream_module" | |
- url "https://github.com/tarantool/nginx_upstream_module.git" | |
- version "0.4b" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local log = require('log') | |
local xlog = require('xlog') | |
local yaml = require('yaml') | |
local fiber = require('fiber') | |
local function find_space_id(snap, name) | |
for lsn, record in xlog.pairs(snap) do | |
if record.BODY.space_id > 512 then | |
break | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------Шардинг------------------------------------- | |
Есть некоторое заранее зафиксированное множество виртуальных бакетов (vbacket), | |
каждый из которых - число от 0 до количества vbackets. Есть множество | |
репликасетов - они же реальные бакеты (backet). Каждый backet хранит некоторое | |
уникальное подмножество vbackets. То есть один vbacket не разделяется между | |
backets. | |
Пример: 11 vbackets и 4 backets. | |
+-----------------------------------------------------------------+ |