Shivaram Lingamneni
b3abd0bf1d
use slices.Reverse from go1.21
11 months ago
Shivaram Lingamneni
35128bfc23
use new aligned atomic types everywhere
See 69448b13a1 / #1969 ; the compiler can now ensure that a uint64
intended for atomic access is always aligned to a 64-bit boundary.
Convert atomic operations on uint32s and pointers as well.
2 years ago
Shivaram Lingamneni
69448b13a1
fix #1969
On a 32-bit architecture, 64-bit atomic loads and stores must be aligned to a
64-bit boundary. Since the (mysql.MySQL) struct is directly included in the
Server struct, it is impossible to guarantee this via the standard technique
of putting the 64-bit value at the beginning of the struct definition
(since the point at which it is included in the parent struct may cross a
64-bit boundary).
This optimization is probably pointless anyway, adding an additional
indirection won't make a difference.
2 years ago
Shivaram Lingamneni
c87dead39b
remove history.ReverseCorrespondents in favor of generics
2 years ago
Shivaram Lingamneni
2df5fb1956
use genericized slice-reversing function
2 years ago
Shivaram Lingamneni
ad8c97c9bb
CHATHISTORY with nonexistent msgid should send empty batch
It was sending MESSAGE_ERROR, which was inappropriate. Send an empty batch
for now (this is at parity with the in-memory implementation).
2 years ago
Shivaram Lingamneni
3ec5ffa340
Revert "fix #1676"
This reverts commit 5bbee02fe6 .
2 years ago
Shivaram Lingamneni
5bbee02fe6
fix #1676
Fix various pagination issues with CHATHISTORY; also undo #491
(msgid munging).
2 years ago
Shivaram Lingamneni
23c7218bf1
first pass at renaming Oragono to Ergo
3 years ago
Shivaram Lingamneni
5eed48c077
fix #1622
Allow users to set max MySQL connections and connection lifetime;
set a sane default for max connections if it's not present.
3 years ago
Shivaram Lingamneni
0d05ab4ff4
fix #1615
Remove the CHATHISTORY * and znc.in/playback *self targets,
clean up associated database code, add new mechanisms to play
all missed DMs.
3 years ago
Shivaram Lingamneni
2e3e4f72ba
fix inverted error check in deleteCorrespondents
3 years ago
Shivaram Lingamneni
18b6e2f1cd
implement CHATHISTORY TARGETS
3 years ago
Shivaram Lingamneni
4052cd12fe
fix #1592
Implements the new `CHATHISTORY LISTCORRESPONDENTS` API.
3 years ago
Shivaram Lingamneni
dc456bd6a4
refactor schema versions to be ints, not strings
3 years ago
Alex Jaspersen
3468a8cb8a
Add support for Unix domain sockets.
This adds a new configuration option, socket-path, instead of using
host.
4 years ago
Shivaram Lingamneni
66561771e6
Revert "Add support for Unix domain sockets"
4 years ago
Alex Jaspersen
475ec9fb24
Add support for Unix domain sockets.
4 years ago
Shivaram Lingamneni
67f35e5c8a
fix #858 and #383
4 years ago
Shivaram Lingamneni
d967129446
fix #833
4 years ago
Shivaram Lingamneni
98a7b45d96
add mysql timeouts
4 years ago
Shivaram Lingamneni
8123e3c08f
improve nick and channel length validation
4 years ago
Shivaram Lingamneni
fab0630180
time.Unix still requires normalization to UTC
4 years ago
Shivaram Lingamneni
8f4c14c783
miscellaneous review fixes
4 years ago
Shivaram Lingamneni
33dac4c0ba
initial persistent history implementation
4 years ago