Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

fix qos 0 messages persistance #230

Merged
merged 6 commits into from
Apr 7, 2015
Merged

fix qos 0 messages persistance #230

merged 6 commits into from
Apr 7, 2015

Conversation

mazhack
Copy link

@mazhack mazhack commented Mar 30, 2015

i try to fix #229

new option "store_qos0_messages"
all test passed, no new test
new option store_qos0_messages
@mcollina
Copy link
Collaborator

Thanks a million, can you please add a test for those?

add 4 new simple test for option store_qos0_messages
@mazhack
Copy link
Author

mazhack commented Mar 31, 2015

review please... my test pass, in travis websocket fail but i dont touch that, in my machine all test are fine.

@@ -67,6 +68,8 @@ var defaults = {
* It defaults to 1 hour.
* - `db`, the AbstractLevelDown implementation.
* - all other `levelup` otions.
* - `store_qos0_messages` store messages with qos 0, default false
* like mosquitto option 'queue_qos0_messages', non-standard option
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please make the option camelCase?

@mcollina
Copy link
Collaborator

mcollina commented Apr 1, 2015

Thanks so much for this PR! I have added some comments, but it is generally good :).

@mazhack
Copy link
Author

mazhack commented Apr 2, 2015

Retained messages are stored, i test it... I will make the option camel case in few das, now i am in vacations, i go back to work next Monday

@mazhack mazhack mentioned this pull request Apr 6, 2015
@mazhack
Copy link
Author

mazhack commented Apr 6, 2015

ups, fix for #231 merged with this PR, revert?

@mcollina
Copy link
Collaborator

mcollina commented Apr 6, 2015

Don't worry, that commit is ok, I get everything merged from here.

@mcollina
Copy link
Collaborator

mcollina commented Apr 6, 2015

I would prefer to have the tests inside https://github.com/mcollina/mosca/blob/master/test/persistence/abstract.js rather than in their own file, specific to Mongo.

small fix in lib/persistence/abstract.js
@mazhack
Copy link
Author

mazhack commented Apr 6, 2015

done, tests for redis, mongo and leveldb.

mcollina added a commit that referenced this pull request Apr 7, 2015
fix qos 0 messages persistance
@mcollina mcollina merged commit 05c242f into moscajs:master Apr 7, 2015
@mcollina
Copy link
Collaborator

mcollina commented Apr 7, 2015

Released as 0.28.2.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mongodb persistence is saving qos 0 packets
3 participants