At Fri, 31 May 2013 20:16:42 +0800, Liu Yuan wrote: > > Signed-off-by: Liu Yuan <namei.unix at gmail.com> > --- > sheep/recovery.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/sheep/recovery.c b/sheep/recovery.c > index dba89fb..ffb43c5 100644 > --- a/sheep/recovery.c > +++ b/sheep/recovery.c > @@ -445,7 +445,8 @@ static inline bool run_next_rw(void) > > free_recovery_info(cur); > > - sd_store->update_epoch(nrinfo->tgt_epoch); > + if (!node_is_gateway_only()) > + sd_store->update_epoch(nrinfo->tgt_epoch); > > main_thread_set(current_rinfo, nrinfo); > wakeup_all_requests(); This causes a compile error. CC recovery.o recovery.c: In function 'run_next_rw': recovery.c:451:2: error: implicit declaration of function 'node_is_gateway_only' [-Werror=implicit-function-declaration] recovery.c: At top level: recovery.c:750:20: error: conflicting types for 'node_is_gateway_only' recovery.c:451:7: note: previous implicit declaration of 'node_is_gateway_only' was here cc1: all warnings being treated as errors Thanks, Kazutaka |