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
2018-08-31 11:04:42 -04:00
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.
2018-08-08 15:13:48 -04:00
Barış Soner Uşaklı
77d47b31fb
cleanly shutdown
...
wait for webserver to stop accepting connections
destroy current connections
wait for db connection to close
2018-03-22 16:36:23 -04:00
Baris Usakli
3c4b4f5263
don't call calback twice #6375
2018-03-21 12:25:25 -04:00
Barış Soner Uşaklı
8a6345ded7
possible fix for pubsub
2018-01-22 16:41:22 -05:00
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
2018-01-18 13:02:56 -05:00
Barış Soner Uşaklı
e092778ba6
closes #6200
2018-01-15 15:05:33 -05:00
Peter Jaszkowiak
e609e497b3
Provide more error information to logs
...
Provides full stack instead of just message
2017-11-01 18:59:48 -06:00
Baris Usakli
7fe239229d
show 3 digits
2017-06-20 16:34:34 -04:00
Peter Jaszkowiak
3c2d4fe649
Switch from underscore to lodash
2017-05-27 14:51:45 -06:00
Barış Soner Uşaklı
fd0043f36a
more tests
2017-05-19 20:24:54 -04:00
barisusakli
b91b41dfa3
show database values in gbs
2017-04-22 17:08:54 -04:00
barisusakli
ba51a6c746
fix underscore
2017-04-22 00:33:49 -04:00
barisusakli
a2784738a4
fix lint
2017-04-22 00:15:12 -04:00
barisusakli
2029de4cc5
closes #5449
2017-04-21 23:56:24 -04:00
barisusakli
3d39a577f4
style change
2017-04-21 23:55:57 -04:00
barisusakli
65a65b19c0
tests for #5600
2017-04-16 14:46:02 -04:00
barisusakli
185b6e5c8e
#5600
2017-04-16 14:31:49 -04:00
Peter Jaszkowiak
4bb49a7171
ESlint no-unused-vars
2017-02-18 15:05:36 -07:00
Peter Jaszkowiak
3b0dd2d1ef
ESlint padded-blocks
2017-02-18 02:32:24 -07:00
Peter Jaszkowiak
a038c66549
ESlint quotes
2017-02-18 01:56:23 -07:00
Peter Jaszkowiak
b1b486f729
ESlint quote-props
2017-02-18 01:19:20 -07:00
Peter Jaszkowiak
1cf25f57fc
ESlint no-space-func
2017-02-17 22:17:10 -07:00
Peter Jaszkowiak
bc1d70c126
ESlint comma-dangle
2017-02-17 19:31:21 -07:00
Dominic Lennon
a06e39528f
Code review change
2017-01-16 08:48:53 +00:00
Dominic Lennon
ed19454eca
Adding more specific timing for session timings
2017-01-11 10:51:41 +00:00
Dominic Lennon
d248ef95cd
Fix for issue #5334 . SessionStore now uses the correct value
2017-01-10 11:48:27 +00:00
Barış Soner Uşaklı
e0501656b6
parallel startup
2016-12-09 00:18:25 +03:00
Barış Soner Uşaklı
8c8e2ae190
closes #5271
2016-12-09 00:00:39 +03:00
barisusakli
5d6e2ad083
multiple test fixes
2016-11-23 17:15:36 +03:00
barisusakli
6d97c4cec8
up mongo deps, create session store after db.authenticate
2016-10-14 22:18:28 +03:00
HeeL
4a3c31b2dc
Fix space-before-function-paren linter rule
2016-10-13 11:43:39 +02:00
barisusakli
4eb8015017
closes #5069
2016-09-29 14:31:32 +03:00
barisusakli
7f041a756d
closes #4865
2016-08-04 20:58:04 +03:00
barisusakli
dcbf53bae3
moved search to dbsearch
2015-12-11 10:57:13 +02:00
psychobunny
78ea462620
fix crash when redis server isn't running
2015-06-08 15:34:39 -04:00
Julian Lam
96526a37a3
fixed #3218
2015-06-05 13:33:58 -04:00
barisusakli
7b550b13b9
display both redis/mongo info if available
2015-05-08 15:36:06 -04:00
Julian Lam
848babcdfa
Merge pull request #2778 from ahwayakchih/support-more-config-defaults-for-setup
...
This adds more setup defaults from config.
2015-04-17 11:14:30 -04:00
barisusakli
c7128bcc98
part 1 of search change
2015-03-14 23:00:24 -04:00
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.
2015-02-25 22:27:19 +01:00
barisusakli
7cbaa90d36
update to socket.io 1.2.1, return_buffers option
2014-11-24 13:44:59 -05:00
barisusakli
73fb653ddf
emit works
2014-11-20 19:02:29 -05:00
psychobunny
f149fb0191
linting, TIL that obj.$key is valid syntax
2014-10-08 12:22:39 -04:00
Julian Lam
f082849126
removing console.log
2014-09-30 23:59:28 -04:00
Julian Lam
43db2289c2
moving db selection into db.connect, where it should be
2014-09-30 23:57:03 -04:00
Julian Lam
3554887f10
back to using redis.auth
2014-09-25 17:13:09 -04:00
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.
2014-09-25 11:56:33 -04:00
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
2014-09-23 17:09:46 -04:00
barisusakli
38494a2af0
pass in session directly
2014-07-02 16:13:26 -04:00