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)

diff of source trees patched with the old and new patches

  • 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) 
    196196        if ((ret = __db_get_flags(dbp, &tflags)) != 0)
    197197                goto err;
    198198
    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)) {
    200204                ret = __db_rdonly(dbp->dbenv, "DB_SEQUENCE->open");
    201205                goto err;
    202206        }