projects
/
idzebra-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e5e4f1d
)
Graceful error (2) if lock files cannot be accessed
author
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 18 Aug 2002 10:20:35 +0000
(10:20 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Sun, 18 Aug 2002 10:20:35 +0000
(10:20 +0000)
index/zebraapi.c
patch
|
blob
|
history
diff --git
a/index/zebraapi.c
b/index/zebraapi.c
index
0633fd0
..
dc0913f
100644
(file)
--- a/
index/zebraapi.c
+++ b/
index/zebraapi.c
@@
-1,4
+1,4
@@
-/* $Id: zebraapi.c,v 1.66 2002-08-05 19:46:01 adam Exp $
+/* $Id: zebraapi.c,v 1.67 2002-08-18 10:20:35 adam Exp $
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002
Index Data Aps
@@
-694,6
+694,11
@@
int zebra_select_databases (ZebraHandle zh, int num_bases,
zh->errCode = 109;
return -1;
}
zh->errCode = 109;
return -1;
}
+ if (!zh->lock_normal || !zh->lock_shadow)
+ {
+ zh->errCode = 2;
+ return -1;
+ }
return 0;
}
return 0;
}
@@
-1008,6
+1013,12
@@
int zebra_begin_read (ZebraHandle zh)
zh->errCode = 109;
return -1;
}
zh->errCode = 109;
return -1;
}
+ if (!zh->lock_normal || !zh->lock_shadow)
+ {
+ (zh->trans_no)--;
+ zh->errCode = 2;
+ return -1;
+ }
zebra_get_state (zh, &val, &seqno);
if (val == 'd')
val = 'o';
zebra_get_state (zh, &val, &seqno);
if (val == 'd')
val = 'o';