Commit Graph

17 Commits (ba345e53e86d2d97fa8dd0e4495719c15330d963)

Author SHA1 Message Date
Barış Soner Uşaklı c2ca02dfc7 fix:
make isPrimary and isCluster always booleans
they were strings when using ./nodebb start and boolean if they were in config.json and started with node app.js
Baris Usakli 444fd70ba3 test pubsub
Barış Soner Uşaklı d4db8c2d42 removed reset
Barış Soner Uşaklı c9a415c469 check if process.send exists
Barış Soner Uşaklı 1024a0efa1 add reset to pubsub for tests
Ben Lubar 33228bb7fe PostgreSQL database driver ()
* [test/database/list] Fix test list 4 being used in two different tests

* [database/postgres] PostgreSQL database driver

* [database/postgres] Make transactions work based on continuation scope.

* [database/postgres] Implement nested transactions

* eslint --fix

* Add database changes from earlier this week to the PostgreSQL driver.

* Fix typo

* Fix postgres.incrObjectFieldBy returning undefined instead of null when given NaN

* [database/postgres] Fix sortedSetsCard returning an array of strings.

* Update socket.io postgres adapter

* Fix PostgreSQL erroring when multiple updates are made to the same sorted set entry in a single operation.

Add a test case to catch this error.

* Fix lint errors.

* Only prune sessions on one instance in a cluster to avoid deadlocks.

They're caught and handled by the database server, but they spam the logs.

* Fix arguments.slice.
Ben Lubar c1e98eefa7 Allow single-host clusters to not send pubsub and socket.io messages through the database. ()
* Allow single-host clusters to not send pubsub and socket.io messages through the database.

* Fix lint errors.
Barış Soner Uşaklı b71d64e8c3 remove fake pubsub
Barış Soner Uşaklı 8a6345ded7 possible fix for pubsub
Ben Lubar e85aabbe74 Allow running as a cluster without Redis ()
* [database/*] Allow databases other than Redis to provide pubsub for clustering if Redis is not present

* [pubsub] Delay messages sent before the database is ready until the database is ready.

* [pubsub] Restore old behavior of not using the database in non-clustered NodeBB instances.

See comment: https://github.com/NodeBB/NodeBB/pull/6233#issuecomment-357814968
Peter Jaszkowiak 896c8c7343 ESlint object-curly-spacing
Peter Jaszkowiak feb8405f95 ESlint eol-last
Peter Jaszkowiak 604358ecc4 ESlint keyword-spacing, no-multi-spaces
Peter Jaszkowiak 2ba46808a1 ESlint one-var, fix comma-dangle
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule
barisusakli 1cc80cbc84 closes
barisusakli 936ea5f686 sync config changes over redis pubsub