Multi regid in one delivery point in redis db

42 views
Skip to first unread message

nick2100

unread,
Feb 5, 2015, 2:02:12 AM2/5/15
to uni...@googlegroups.com
Hi,
  I'm maintaining a push server running uniqush 1.5.1.
I decoverd a issue in our server: There are 2 regid for a gcm delivery point in the db. 
For example, if I run the query in redis-cli, I'll get:

redis 127.0.0.1:6379> get delivery.point:gcm:69904add3b64c9852b3d5532841f64b41a8a79f8
"gcm:[{\"regid\":\"APA91bEI0zLA9UyMx3YIovARGXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\",\"service\":\"service_name\",\"subscriber\":\"subscriber_name\"},{\"regid\":\"APA91bH01nRtNBR9Pu_nXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX\"}]"

In my thought, the devery point value is a hashed value from regid, service, subscriber. Then I don't understand what is the second regid for.
Can anybody give me some advise? Thanks!

Monnand

unread,
Feb 10, 2015, 8:55:42 PM2/10/15
to uni...@googlegroups.com
Hi Nick,

There are two hashes corresponds to each delivery point.

The Regid will be changed by the GCM server and uniqush will be notified when this change happened. However, when the delivery point needs to be removed, it has to be found using the original regid used to register this delivery point in uniqush. That's the second regid you see in the database.

--
You received this message because you are subscribed to the Google Groups "uniqush" group.
To unsubscribe from this group and stop receiving emails from it, send an email to uniqush+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nick2100

unread,
Feb 10, 2015, 9:49:46 PM2/10/15
to uni...@googlegroups.com
Hi Monnand,
  Thank you very much for your reply!


Monnand於 2015年2月11日星期三 UTC+8上午9時55分42秒寫道:
Reply all
Reply to author
Forward
0 new messages