120 Commits (4b486a808e455ddbed06ab1d1940093cfce96cad)

Author SHA1 Message Date
Barış Soner Uşaklı 0524fd9caa
closes #6996 (#6997)
* closes #6996

* fix lint
6 years ago
Barış Soner Uşaklı 0519f84734
Promisify modules (#6723)
* WIP promisify

* promisify psql

* ability to skip some keys

* dont promisify client object

* remove async

* clone entire module so it has all properties

* add shim for node 6

* ignore sessionStore as well

* ignore pool on psql
7 years ago
Ben Lubar 33228bb7fe PostgreSQL database driver (#5861)
* [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.
7 years ago
Barış Soner Uşaklı 77d47b31fb cleanly shutdown
wait for webserver to stop accepting connections
destroy current connections
wait for db connection to close
7 years ago
Baris Usakli 3c4b4f5263 don't call calback twice #6375 7 years ago
Barış Soner Uşaklı 8a6345ded7 possible fix for pubsub 7 years ago
Ben Lubar e85aabbe74 Allow running as a cluster without Redis (#6233)
* [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
7 years ago
Barış Soner Uşaklı e092778ba6 closes #6200 7 years ago
Peter Jaszkowiak e609e497b3 Provide more error information to logs
Provides full stack instead of just message
7 years ago
Baris Usakli 7fe239229d show 3 digits 8 years ago
Peter Jaszkowiak 3c2d4fe649 Switch from underscore to lodash 8 years ago
Barış Soner Uşaklı fd0043f36a more tests 8 years ago
barisusakli b91b41dfa3 show database values in gbs 8 years ago
barisusakli ba51a6c746 fix underscore 8 years ago
barisusakli a2784738a4 fix lint 8 years ago
barisusakli 2029de4cc5 closes #5449 8 years ago
barisusakli 3d39a577f4 style change 8 years ago
barisusakli 65a65b19c0 tests for #5600 8 years ago
barisusakli 185b6e5c8e #5600 8 years ago
Peter Jaszkowiak 4bb49a7171 ESlint no-unused-vars 8 years ago
Peter Jaszkowiak 3b0dd2d1ef ESlint padded-blocks 8 years ago
Peter Jaszkowiak a038c66549 ESlint quotes 8 years ago
Peter Jaszkowiak b1b486f729 ESlint quote-props 8 years ago
Peter Jaszkowiak 1cf25f57fc ESlint no-space-func 8 years ago
Peter Jaszkowiak bc1d70c126 ESlint comma-dangle 8 years ago
Dominic Lennon a06e39528f Code review change 8 years ago
Dominic Lennon ed19454eca Adding more specific timing for session timings 8 years ago
Dominic Lennon d248ef95cd Fix for issue #5334. SessionStore now uses the correct value 8 years ago
Barış Soner Uşaklı e0501656b6 parallel startup 8 years ago
Barış Soner Uşaklı 8c8e2ae190 closes #5271 8 years ago
barisusakli 5d6e2ad083 multiple test fixes 8 years ago
barisusakli 6d97c4cec8 up mongo deps, create session store after db.authenticate 8 years ago
HeeL 4a3c31b2dc Fix space-before-function-paren linter rule 8 years ago
barisusakli 4eb8015017 closes #5069 9 years ago
barisusakli 7f041a756d closes #4865 9 years ago
barisusakli dcbf53bae3 moved search to dbsearch 9 years ago
psychobunny 78ea462620 fix crash when redis server isn't running 10 years ago
Julian Lam 96526a37a3 fixed #3218 10 years ago
barisusakli 7b550b13b9 display both redis/mongo info if available 10 years ago
Julian Lam 848babcdfa Merge pull request #2778 from ahwayakchih/support-more-config-defaults-for-setup
This adds more setup defaults from config.
10 years ago
barisusakli c7128bcc98 part 1 of search change 10 years ago
ahwayakchih 4c2f628baa Added support for using `mongo:password` and `redis:password` from config, when no password is entered at setup. This allows for having "default" password and overrides from config. Added using `mongo:username` and `port` from config when running setup. 10 years ago
barisusakli 7cbaa90d36 update to socket.io 1.2.1, return_buffers option 10 years ago
barisusakli 73fb653ddf emit works 10 years ago
psychobunny f149fb0191 linting, TIL that obj.$key is valid syntax 11 years ago
Julian Lam f082849126 removing console.log 11 years ago
Julian Lam 43db2289c2 moving db selection into db.connect, where it should be 11 years ago
Julian Lam 3554887f10 back to using redis.auth 11 years ago
Julian Lam 5a36c33fac fixed #2142 -- passing in cached (pre-required) redis module into socket.io so it uses the same redis module... why? who bloody knows. 11 years ago
Julian Lam f41be4ae8b exposed redis' "connect" method, so socket.io can call it from outside database/redis.js, fixed NodeBB requiring Redis as a socket.io store. It will now go back to using in-memory store per process, if no redis config is found in the NodeBB configuration. re: #2097 11 years ago