This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
--- third_party/libeio/ecb.h 2016-05-23 16:41:55.000000000 +0300 | |
+++ third_party/libeio/ecb.h.patched 2016-05-23 16:41:43.000000000 +0300 | |
@@ -82,7 +82,7 @@ | |
#define ECB_C (__STDC__+0) /* this assumes that __STDC__ is either empty or a number */ | |
#define ECB_C99 (__STDC_VERSION__ >= 199901L) | |
-#define ECB_C11 (__STDC_VERSION__ >= 201112L) | |
+#define ECB_C11 0 // (__STDC_VERSION__ >= 201112L) | |
#define ECB_CPP (__cplusplus+0) | |
#define ECB_CPP11 (__cplusplus >= 201103L) |
This file contains hidden or 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 ffi = require('ffi') | |
local buffer = require('buffer') | |
local builtin = ffi.C | |
local MAXNESTING = 16 | |
local table_new = require('table.new') | |
local table_clear = require('table.clear') | |
ffi.cdef[[ | |
char *mp_encode_nil (char *data); |
This file contains hidden or 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 ffi = require('ffi') | |
local buffer = require('buffer') | |
local builtin = ffi.C | |
ffi.cdef[[ | |
char *mp_encode_nil (char *data); | |
void mp_decode_nil (const char **data); | |
bool mp_decode_bool (const char **data); | |
char *mp_encode_bool (char *data, bool val); |