From ee11732bdc1637d646b772ce22d43bd571f7a736 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Sun, 15 May 2016 08:52:29 +0200 Subject: [PATCH] usrloc: coonect to db from rpc processes - evapi consumers are using rpc rank and there can be save/lookup operations - reported by GH #622 --- modules/usrloc/ul_mod.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/usrloc/ul_mod.c b/modules/usrloc/ul_mod.c index fa72e2ba18b..0e1a452d237 100644 --- a/modules/usrloc/ul_mod.c +++ b/modules/usrloc/ul_mod.c @@ -421,8 +421,10 @@ static int child_init(int _rank) return 0; case DB_ONLY: case WRITE_THROUGH: - /* connect to db only from SIP workers, TIMER and MAIN processes */ - if (_rank<=0 && _rank!=PROC_TIMER && _rank!=PROC_MAIN) + /* connect to db only from SIP workers, TIMER and MAIN processes, + * and RPC processes */ + if (_rank<=0 && _rank!=PROC_TIMER && _rank!=PROC_MAIN + && _rank!=PROC_RPC) return 0; break; case WRITE_BACK: