0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 01:58:35 +02:00
Commit graph

3262 commits

Author SHA1 Message Date
Jason Volk 7b67b106b6 ircd::fs: Add convenience tls scratch buffers for name and path manip. 2019-02-07 20:49:26 -08:00
Jason Volk cc636d375f ircd::util: Improve string() suite; add flags for shrink_to_fit(). 2019-02-07 18:03:21 -08:00
Jason Volk 4c43b42f62 ircd::json::stack: Add overload for character append. 2019-02-07 08:19:28 -08:00
Jason Volk b6bfc5dd5c ircd::client: Add debuglog around main exec. 2019-02-07 08:19:28 -08:00
Jason Volk 8c99e90a85 ircd::client: Add request count to loghead. 2019-02-07 08:19:28 -08:00
Jason Volk 3a8f53e46e ircd:Ⓜ️ Start a device header. 2019-02-07 08:19:27 -08:00
Jason Volk 810a6017dc ircd::net: Allow allow_self_signed to cover more cases. 2019-02-07 02:36:02 -08:00
Jason Volk d5f03fba59 ircd:Ⓜ️:v1: Add ctor stack complex for user::keys::query. 2019-02-07 00:40:48 -08:00
Jason Volk b687d63169 ircd::ctx: Create and use log facility. 2019-02-07 00:17:26 -08:00
Jason Volk ce0d974868 ircd:Ⓜ️:v1: Add principals for user::keys::query & claim; remove unstables. 2019-02-07 00:17:26 -08:00
Jason Volk 8eb68c0e2e ircd:Ⓜ️:dbs: Add missing event refs comparator: minor cleanup. 2019-02-06 21:32:26 -08:00
Jason Volk 93fb468ba2 ircd:Ⓜ️:vm: Add tools using the eval instance_list. 2019-02-06 20:54:21 -08:00
Jason Volk 70c901a894 ircd:Ⓜ️:vm: Add json::array eval ctor. 2019-02-06 20:54:04 -08:00
Jason Volk bb68dfc1e7 ircd:Ⓜ️ Add event::hash(json::object) w/ branch from event.source. 2019-02-06 20:52:42 -08:00
Jason Volk a36f375162 ircd::json: Max iov::max_size a constexpr. 2019-02-06 20:51:50 -08:00
Jason Volk e497fe8506 ircd:Ⓜ️:event: Add event_id() convenience suite to reverse index(). 2019-02-06 17:18:38 -08:00
Jason Volk ec8f0c1e1c ircd:Ⓜ️:event: Add refs interface. 2019-02-06 17:18:38 -08:00
Jason Volk 2586476a57 ircd:Ⓜ️:dbs: Fix prefix related for event_refs column. 2019-02-06 17:18:38 -08:00
Jason Volk a63f23fc2d ircd::db: Minor reorg; move db::index defs near db::column. 2019-02-06 16:42:27 -08:00
Jason Volk 9c63e8e5dd ircd:Ⓜ️ Limit content property count in send() suite. 2019-02-06 02:58:21 -08:00
Jason Volk 9bd86e7f69 ircd:Ⓜ️:request: Use conf items for buffer sizes and limits. 2019-02-06 02:34:52 -08:00
Jason Volk 4da523ddf9 ircd:Ⓜ️🆔 Avoid character readback here. 2019-02-05 23:18:05 -08:00
Jason Volk 965134079e ircd: Fix regression. 2019-02-05 23:18:05 -08:00
Jason Volk ed62a4c61c ircd:Ⓜ️ Minor formatting. 2019-02-05 23:18:05 -08:00
Jason Volk ca4ef84c9f ircd:Ⓜ️:dbs: Add event_refs indexer; reorg event indexers related. 2019-02-05 19:05:17 -08:00
Jason Volk 843f78548b ircd:Ⓜ️:dbs: Add event_refs metadata column. 2019-02-05 19:05:17 -08:00
Jason Volk 6cb4020034 ircd:Ⓜ️:dbs: Rename head/refs options to room_head/room_refs; update vmopts and sites. 2019-02-05 19:05:17 -08:00
Jason Volk 67d57ed2b6 ircd::json: Add a specific escape transform utility to interface. 2019-02-05 15:42:39 -08:00
Jason Volk d7c68d2fb7 ircd:Ⓜ️:room: Fix regressions. 2019-02-05 02:20:14 -08:00
Jason Volk ccf9f87e2a ircd:Ⓜ️🆔 Fail boolean validators faster on empty id. 2019-02-05 01:58:12 -08:00
Jason Volk 44d105b1ba ircd:Ⓜ️🆔 Minor cleanup. 2019-02-05 01:58:12 -08:00
Jason Volk fe1f097e58 ircd:Ⓜ️:sync: No propagation of m::error from polylog sync handlers. 2019-02-05 01:58:12 -08:00
Jason Volk 08940bddaf ircd::resource: Add conf items to toggle X-Matrix Authorization. 2019-02-05 01:58:12 -08:00
Jason Volk 5f759a617c ircd::resource: Improve X-Matrix destination host check. 2019-02-04 23:16:27 -08:00
Jason Volk a40a7912b0 ircd:Ⓜ️:room::messages: Add special case for ctor seeking depth=0. 2019-02-04 20:01:31 -08:00
Jason Volk f11282f583 ircd::db: Fix prefixed iterator seek to pos::BACK. 2019-02-04 19:45:27 -08:00
Jason Volk d36a6cd2b0 ircd:Ⓜ️:room: Add index(room::id) convenience to get some integer rep for room. 2019-02-04 19:19:56 -08:00
Jason Volk 7e11176ab7 ircd:Ⓜ️:room::messages: Simplify/optimize seek() functions. 2019-02-04 19:19:56 -08:00
Jason Volk d5f01d013d ircd::db: Add a last() iterator convenience for column / index. 2019-02-04 19:17:52 -08:00
Jason Volk 6947c7e953 ircd:Ⓜ️ Move the state/send event iov composer into m_room. 2019-02-04 13:59:01 -08:00
Jason Volk 3f4a8647af ircd::db: Dressings for port interfaces. 2019-02-04 13:59:01 -08:00
Jason Volk 9e2b3163b3 ircd::db: Reorder various definitions. 2019-02-04 13:59:01 -08:00
Jason Volk d2380ecd36 ircd::json::stack: Add raw rewind method to interface. 2019-01-26 17:01:07 -08:00
Jason Volk 7d96e90347 ircd:Ⓜ️:sync: Add data commitment indication to loghead. 2019-01-26 17:00:48 -08:00
Jason Volk c080d5523c ircd:Ⓜ️:presence: Improve get() interface based on realistic usage needs. 2019-01-26 16:59:12 -08:00
Jason Volk 0b8a2dfae4 ircd:Ⓜ️ Reorder / reorg m_event unit definitions. 2019-01-26 15:24:03 -08:00
Jason Volk 5ae0a521d6 ircd:Ⓜ️:event::fetch: Swap the fallback logic to json query after row query. 2019-01-26 14:06:03 -08:00
Jason Volk 5ce55a9dee ircd:Ⓜ️:event::fetch: Simplify interface; reference opts as class member. 2019-01-26 13:52:33 -08:00
Jason Volk e20d71a28a ircd:Ⓜ️ Fix m::events regression relying on event::fetch::row. 2019-01-26 13:38:46 -08:00
Jason Volk c458448104 ircd:Ⓜ️:dbs: Drop the origin column. 2019-01-25 17:37:30 -08:00
Jason Volk b203def78b ircd::mods: Deinline the mapi header ctor. 2019-01-25 14:53:13 -08:00
Jason Volk 246a5faba4 ircd::db: Add interface for range deletions. 2019-01-25 12:32:04 -08:00
Jason Volk 5b3bee79a6 ircd::fs: Normalize buffering for path interface; add path features. 2019-01-25 11:49:24 -08:00
Jason Volk 2886924bf0 ircd::fs: Reorg path interface related. 2019-01-25 10:39:37 -08:00
Jason Volk f3cc3d945d ircd:Ⓜ️:dbs: Tweak various meta_block/bloom size defaults. 2019-01-24 16:50:16 -08:00
Jason Volk 5d701601ae ircd:Ⓜ️:dbs: Add indiv meta_block confs for all colums; various meta_block fixes. 2019-01-24 13:34:34 -08:00
Jason Volk 736a6a1f27 ircd:Ⓜ️:event::fetch: Optimize row construction when json query used. 2019-01-24 13:24:17 -08:00
Jason Volk 91f741ec57 ircd:Ⓜ️:dbs: Minor cleanup. 2019-01-24 13:16:34 -08:00
Jason Volk 14570f73e3 ircd:Ⓜ️:dbs: Drop the auth_events column. 2019-01-24 13:05:48 -08:00
Jason Volk 695985327e ircd:Ⓜ️:dbs: Drop the redacts column. 2019-01-24 12:52:45 -08:00
Jason Volk 250f315589 ircd:Ⓜ️:dbs: Drop the membership column; minor cleanup / fixes. 2019-01-24 12:52:26 -08:00
Jason Volk d64a49428e ircd:Ⓜ️ Demote membership from top-level key; remove from m::event tuple. 2019-01-24 12:52:26 -08:00
Jason Volk 5d3dd964a0 ircd:Ⓜ️:event: Move essential() stripping routines to module. 2019-01-24 12:05:58 -08:00
Jason Volk 3b78c9154a ircd:Ⓜ️:event: Skip non-existent columns in m::cached() check. 2019-01-24 12:02:58 -08:00
Jason Volk f1a6654f21 ircd:Ⓜ️ Remove any options which toggle full json persistence. 2019-01-24 11:37:26 -08:00
Jason Volk 5ea765642e ircd:Ⓜ️:dbs: Drop the hashes column. 2019-01-24 11:12:41 -08:00
Jason Volk c551777f7b ircd:Ⓜ️:dbs: Drop the signatures column. 2019-01-24 11:12:15 -08:00
Jason Volk d7fa6ff04c ircd::db: Update row ctor to ignore missing requested columns by name. 2019-01-24 10:52:05 -08:00
Jason Volk a95b688925 ircd:Ⓜ️:dbs: Drop the prev_state column from schema. 2019-01-23 16:11:26 -08:00
Jason Volk b439e935ab ircd:Ⓜ️ Use more generic exception catch here. 2019-01-23 16:10:50 -08:00
Jason Volk c2521b587b ircd::db: Consider if column dropped for boolean test. 2019-01-23 16:10:22 -08:00
Jason Volk 92154be55d ircd:Ⓜ️ Use event::keys::selection bitset in event::fetch::opts rather than event::keys. 2019-01-23 15:36:02 -08:00
Jason Volk 2b9e2c850e ircd::db: Remove the txn::append template iteration over a json::tuple. 2019-01-23 15:34:56 -08:00
Jason Volk 764585e370 ircd:Ⓜ️:dbs: Move direct column append into function; minor cleanup. 2019-01-23 14:47:47 -08:00
Jason Volk 2fd50fc9af ircd::db: Split db.cc into db_env.cc and db_port.cc. 2019-01-23 14:08:02 -08:00
Jason Volk ecd158f375 ircd::db: Create database/env.h index of all database/env/ headers. 2019-01-23 13:34:50 -08:00
Jason Volk f01a72c8f6 ircd:Ⓜ️ Merge m_request.cc into m.cc 2019-01-23 13:28:51 -08:00
Jason Volk cd30a01e9d ircd:Ⓜ️ Move all ircd/m/* units up to ircd/. 2019-01-23 13:24:53 -08:00
Jason Volk 14b57f2eac ircd: Rename aio.h/aio.cc with fs_ prefix. 2019-01-23 13:20:38 -08:00
Jason Volk f95ed6851b ircd::json: Deinline / defriend various json::object related. 2019-01-22 12:04:23 -08:00
Jason Volk 39dde3b323 ircd::json: deinline / defriend various json::member related. 2019-01-22 11:43:55 -08:00
Jason Volk 0d78a07f55 ircd::json: Minor reorg / cleanup; improve some thrown errors. 2019-01-22 11:05:30 -08:00
Jason Volk c9a4690d0c ircd::json: Add escape mapping; unify the string generators. 2019-01-21 15:34:57 -08:00
Jason Volk efc4831497 ircd::json: Improve conformity of various limitation constants. 2019-01-21 14:38:34 -08:00
Jason Volk b2caba08a9 ircd::util: Fix u2a() input casting. 2019-01-19 13:42:05 -08:00
Jason Volk 950f989cf0 ircd::crh: Add HMAC support. 2019-01-19 13:20:58 -08:00
Jason Volk 18091eeb46 ircd::crh: Add sha1 hashing device. 2019-01-19 12:25:55 -08:00
Jason Volk 1041118b9b ircd:Ⓜ️:sync: Add catch handler for more descriptive error. 2019-01-18 15:09:39 -08:00
Jason Volk 0dd6abf9ca ircd: Options package in preparation for lto. 2019-01-18 14:54:04 -08:00
Jason Volk 51c5ffbb5e ircd:Ⓜ️:event::fetch: Eliminate the selected_only option; make unconditional. 2019-01-18 14:54:04 -08:00
Jason Volk b947aee02d ircd:Ⓜ️ Fix subobject-linkage. 2019-01-18 14:54:04 -08:00
Jason Volk 4d05fe0353 ircd:Ⓜ️:event::fetch: Reorg / cleanup internal interface. 2019-01-18 14:33:42 -08:00
Jason Volk 84309261b2 ircd::fs::aio: Even more counters. 2019-01-18 10:14:38 -08:00
Jason Volk aeea524ac9 ircd::net: Improve listener interface w/ instance reference in callbacks. 2019-01-18 10:14:37 -08:00
Jason Volk d639eceba2 ircd: Move runlevel related into ircd::run:: namespace. 2019-01-18 09:08:56 -08:00
Jason Volk 36bcb9a300 ircd::db: Remove the handles vector optimization. 2019-01-17 15:38:00 -08:00
Jason Volk bb354c5c05 ircd::db: Bypass row iterator creation when not seeking on construction. 2019-01-17 15:38:00 -08:00
Jason Volk 42d9f6dc79 ircd:Ⓜ️:event::fetch: Simplify opts ctor; minor cleanup. 2019-01-17 15:38:00 -08:00
Jason Volk 197478b531 ircd:Ⓜ️ Replace magic buffer sizes; minor cleanup. 2019-01-17 14:54:20 -08:00
Jason Volk 95cb4329fe ircd::log: Remove unconditional critical output from stdout (remains for stderr).
Removed due to mark() causing critical output.
2019-01-17 14:54:20 -08:00
Jason Volk 1fb64a8924 ircd:Ⓜ️:event::fetch: Set the fetch.valid state after index lookup failure. 2019-01-17 14:54:20 -08:00
Jason Volk 1eca2cafb3 ircd::fs::aio: Optimize the syscall pattern by selectively reading the eventfd. 2019-01-17 13:21:43 -08:00
Jason Volk a61d9e5d96 ircd:Ⓜ️:event::fetch: Add option for tight-to-selections. 2019-01-16 18:35:58 -08:00
Jason Volk 9e450cd912 ircd:Ⓜ️:room::messages: Fix fetch() wrapping; pass any fopts. 2019-01-16 18:09:36 -08:00
Jason Volk 1b9e306ff0 ircd:Ⓜ️:event::fetch: Various fixes / minor reorg. 2019-01-16 18:08:31 -08:00
Jason Volk 147ec1763b ircd:Ⓜ️:event::fetch: Clear source on subsequent valid row seek(). 2019-01-16 17:53:24 -08:00
Jason Volk c4b17c293a ircd:Ⓜ️:event::fetch: Condition on a valid event_idx here. 2019-01-16 16:38:58 -08:00
Jason Volk 8b05ea9d39 ircd:Ⓜ️:event::fetch: Add some assertions on the seek(). 2019-01-16 16:38:14 -08:00
Jason Volk c43a0e49ab ircd::db: Tweak cell::valid() stack. 2019-01-16 16:38:14 -08:00
Jason Volk f9127e5681 ircd:Ⓜ️:event::fetch: Obey keys selection when fetching event with full json query. 2019-01-16 16:38:14 -08:00
Jason Volk fc703660f6 ircd:Ⓜ️ Add selecting-key ctor for event from json::object. 2019-01-16 16:38:14 -08:00
Jason Volk 2b12c8a9c5 ircd:Ⓜ️:dbs: Use event source if available; add write options. 2019-01-16 15:55:08 -08:00
Jason Volk f857e25ea7 ircd:Ⓜ️:event: Add a source json::object as a member. 2019-01-16 14:35:10 -08:00
Jason Volk 11607b3993 ircd:Ⓜ️:dbs: Use conditional column constructors for event columns. 2019-01-16 13:47:45 -08:00
Jason Volk 0652dfbc59 ircd::db: Allow null column transactions to be ignored rather than erroneous. 2019-01-16 13:46:15 -08:00
Jason Volk 918bc95d1a ircd::db: Add nothrow column construction overload. 2019-01-16 13:23:00 -08:00
Jason Volk 4ded053406 ircd::db: Add cfid() lookup suite. 2019-01-16 13:21:36 -08:00
Jason Volk 5ae495031f ircd:Ⓜ️:event::fetch: Improve fetch options related; minor cleanup. 2019-01-16 12:19:25 -08:00
Jason Volk 2171cc23e8 ircd::db: Fix cell::load seek validation. 2019-01-15 19:03:52 -08:00
Jason Volk 8b1887c5f8 ircd::fs::aio: Fix assertion. 2019-01-15 19:03:52 -08:00
Jason Volk c5489cecb0 ircd:Ⓜ️:event::fetch: Add options to seek(); add event_json query branch. 2019-01-15 19:03:52 -08:00
Jason Volk c314a9bb78 ircd:Ⓜ️:dbs: Add event_json column with conditional indexer. 2019-01-15 15:36:18 -08:00
Jason Volk 7c998e48ed ircd:Ⓜ️:dbs: Cleanup / reorg write-indexers stack. 2019-01-15 13:00:15 -08:00
Jason Volk 1ab20cf721 ircd:Ⓜ️ Reorg / split / de-friend-inject various event interfaces. 2019-01-15 12:49:53 -08:00
Jason Volk 482112b369 ircd::mods: Improve exception translation. 2019-01-13 16:55:52 -08:00
Jason Volk 1a53b0e6e4 ircd::ctx: Improve exception handling at base frame. 2019-01-13 16:37:31 -08:00
Jason Volk cbf456a388 ircd: Rename and refactor ircd::assertion interface into ircd::panic. 2019-01-13 16:37:31 -08:00
Jason Volk ea4c3447c6 ircd::fs::aio: Simplify various conditions; add various comments; cleanup. 2019-01-13 14:02:03 -08:00
Jason Volk 4871928bfa ircd::ctx: Partial de-inline of dock methods. 2019-01-13 13:57:34 -08:00
Jason Volk 3fae228c1a ircd::json: Simplify json::object interface: eliminate path traversing overloads. 2019-01-12 16:47:48 -08:00
Jason Volk b42ded1fc7 ircd::http: Add string views to make the raw head data available. 2019-01-12 11:56:00 -08:00
Jason Volk d5956f47f7 ircd:Ⓜ️ Fix the m::cached logic to discount missing values. 2019-01-11 17:38:33 -08:00
Jason Volk 655d4e41c6 ircd::db: Configuration package. 2019-01-11 17:37:51 -08:00
Jason Volk cbc4ddefe4 ircd::db: Fix issues with cache queries. 2019-01-11 17:36:05 -08:00
Jason Volk d3d5f03b8c ircd::db: Ensure no internal block cache is created by rocksdb when do not want. 2019-01-11 16:48:57 -08:00
Jason Volk f55ad72ed5 ircd::db: Maintain our own names for caches. 2019-01-11 16:21:04 -08:00
Jason Volk 9a42fd9f60 ircd::db: Prevent submitting row with one cell to request pool. 2019-01-11 14:01:56 -08:00
Jason Volk 0f20a6a6ba ircd::db: Improve row seek debugging and related. 2019-01-11 13:57:35 -08:00
Jason Volk 1198f7bc56 ircd::json::stack: Add object::append() convenience. 2019-01-10 16:58:44 -08:00
Jason Volk 4c495e1f44 modules/client/sync: Various cleanup / simplify. 2019-01-10 16:58:37 -08:00
Jason Volk b15d3b929f ircd:Ⓜ️:room::messages: Support seeking to event index of 0 for begin. 2019-01-10 13:17:01 -08:00
Jason Volk 2d860b25a8 ircd:Ⓜ️:sync: Checkpoint. 2019-01-09 20:39:12 -08:00
Jason Volk 5815fc87c2 ircd:Ⓜ️:events: Simplify interface. 2019-01-09 18:08:29 -08:00
Jason Volk 6c96e0d785 ircd:Ⓜ️:events: Simplify the for_each iteration interface. 2019-01-09 17:11:00 -08:00
Jason Volk 179d40fd21 ircd:Ⓜ️ Optimize event property query. 2019-01-08 17:17:41 -08:00
Jason Volk 443905859f ircd:Ⓜ️:sync: Additional abstraction; checkpoint polylog /sync modules. 2019-01-08 17:17:41 -08:00
Jason Volk f9ec33916c ircd::json::stack: Add internal convenience member instance in the object and array class. 2019-01-08 15:53:41 -08:00
Jason Volk ce999b916a ircd::json::stack: Add chase device; add top() conveniences. 2019-01-08 11:06:00 -08:00
Jason Volk cf6fc070a7 ircd::json::stack: Keep state for member append; null member if no append. 2019-01-07 14:00:24 -08:00
Jason Volk 7df8a8a20c ircd::util: Add more pretty date units. 2019-01-07 13:22:47 -08:00