Ticket #18515: patch.4.6.21.3.diff
File patch.4.6.21.3.diff, 597 bytes (added by jmroot (Joshua Root), 16 years ago) |
---|
-
sequence/sequence.c
diff -pruN db-4.6.21/sequence/sequence.c db-4.6.21-new/sequence/sequence.c
old new __seq_open_pp(seq, txn, keyp, flags) 196 196 if ((ret = __db_get_flags(dbp, &tflags)) != 0) 197 197 goto err; 198 198 199 if (DB_IS_READONLY(dbp)) { 199 /* 200 * We can let replication clients open sequences, but must 201 * check later that they do not update them. 202 */ 203 if (F_ISSET(dbp, DB_AM_RDONLY)) { 200 204 ret = __db_rdonly(dbp->dbenv, "DB_SEQUENCE->open"); 201 205 goto err; 202 206 }