Skip to content

Commit

Permalink
usrloc: coonect to db from rpc processes
Browse files Browse the repository at this point in the history
- evapi consumers are using rpc rank and there can be save/lookup
  operations
- reported by GH #622

(cherry picked from commit ee11732)
(cherry picked from commit e8a063a)
  • Loading branch information
miconda committed Jun 29, 2016
1 parent f7d1ae2 commit f071950
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/usrloc/ul_mod.c
Expand Up @@ -408,8 +408,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:
Expand Down

0 comments on commit f071950

Please sign in to comment.