Dmitry Antipov

Results 20 issues of Dmitry Antipov

Prefer `std::string &` when calling and processing the result of `add_dashes()`, thus saving a few calls to `std::string` copy constructor. Signed-off-by: Dmitry Antipov

Prefer `std::once_flag` and `std::call_once()` over plain C-style flag to arrange (the body of) `TimerRecord::stop()` to execute just once, adjust related code. Signed-off-by: Dmitry Antipov

Use `gf_path_strip_trailing_slashes()` and avoid substring copying in `index_dir_create()`. This tweak also fixes the following warning from gcc-12: ``` index.c: In function 'index_dir_create': index.c:282:9: warning: 'strncpy' output truncated before terminating nul...

Introduce `gf_rebalance_thread_count()` and use it both in DHT and glusterd, related cleanups as usual. Signed-off-by: Dmitry Antipov Updates: #1000

Introduce `gf_uuid_dup()` and prefer host UUID in binary form, adjust nearby code. This is mostly intended to avoid redundant calls to `uuid_utoa()`, drop related variables and slightly reduce the memory...

If sanitizer (e.g. ASan) is enabled, using `AC_CHECK_LIB(...)` to detect TCmalloc causes `configure` to construct compiler invocations like `gcc -o conftest -g -O2 conftest.c -ltcmalloc -lasan`, which is wrong because...

wontfix

Prefer transport-internal `xlator` pointer over `THIS` in RPC request handlers, adjust related code. Signed-off-by: Dmitry Antipov Updates: #1000

Drop `GF_DATA_TYPE_STR_OLD` dict data type and related code, prefer `GF_DATA_TYPE_STR` in volgen and serialization. Signed-off-by: Dmitry Antipov Updates: #1000

Simplify `__server_getspec()` by using `gf_asprintf()`, add proper error handling. Signed-off-by: Dmitry Antipov Updates: #1000

Linux-specific signal handling backend based on `signalfd(2)` system call, and public function `event_base_get_signal_method()` to obtain an underlying kernel signal handling mechanism.