diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-27 14:51:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-01-27 22:14:32 +0000 |
commit | 187af35150d234ff03773e9001b5ee8de6586a79 (patch) | |
tree | ebcc161f84ed1540e18ae562e9dd1cc9ff5e37fa /main/db/patch.4.7.25.1 | |
parent | c26e09771d5fb2c09b2b1ec309602bbc94548bf3 (diff) | |
download | aports-187af35150d234ff03773e9001b5ee8de6586a79.tar.bz2 aports-187af35150d234ff03773e9001b5ee8de6586a79.tar.xz |
main/db: upgrade to 5.3.15 and split out -utils subpackage
Diffstat (limited to 'main/db/patch.4.7.25.1')
-rw-r--r-- | main/db/patch.4.7.25.1 | 75 |
1 files changed, 0 insertions, 75 deletions
diff --git a/main/db/patch.4.7.25.1 b/main/db/patch.4.7.25.1 deleted file mode 100644 index 3c7e23ce07..0000000000 --- a/main/db/patch.4.7.25.1 +++ /dev/null @@ -1,75 +0,0 @@ -*** sequence/sequence.c.orig 2008-05-05 13:25:09.000000000 -0700
---- sequence/sequence.c 2008-08-15 09:58:46.000000000 -0700
-***************
-*** 187,193 ****
- if ((ret = __db_get_flags(dbp, &tflags)) != 0)
- goto err;
-
-! if (DB_IS_READONLY(dbp)) {
- ret = __db_rdonly(dbp->env, "DB_SEQUENCE->open");
- goto err;
- }
---- 187,197 ----
- if ((ret = __db_get_flags(dbp, &tflags)) != 0)
- goto err;
-
-! /*
-! * We can let replication clients open sequences, but must
-! * check later that they do not update them.
-! */
-! if (F_ISSET(dbp, DB_AM_RDONLY)) {
- ret = __db_rdonly(dbp->env, "DB_SEQUENCE->open");
- goto err;
- }
-***************
-*** 244,249 ****
---- 248,258 ----
- if ((ret != DB_NOTFOUND && ret != DB_KEYEMPTY) ||
- !LF_ISSET(DB_CREATE))
- goto err;
-+ if (IS_REP_CLIENT(env) &&
-+ !F_ISSET(dbp, DB_AM_NOT_DURABLE)) {
-+ ret = __db_rdonly(env, "DB_SEQUENCE->open");
-+ goto err;
-+ }
- ret = 0;
-
- rp = &seq->seq_record;
-***************
-*** 296,302 ****
- */
- rp = seq->seq_data.data;
- if (rp->seq_version == DB_SEQUENCE_OLDVER) {
-! oldver: rp->seq_version = DB_SEQUENCE_VERSION;
- if (!F_ISSET(env, ENV_LITTLEENDIAN)) {
- if (IS_DB_AUTO_COMMIT(dbp, txn)) {
- if ((ret =
---- 305,316 ----
- */
- rp = seq->seq_data.data;
- if (rp->seq_version == DB_SEQUENCE_OLDVER) {
-! oldver: if (IS_REP_CLIENT(env) &&
-! !F_ISSET(dbp, DB_AM_NOT_DURABLE)) {
-! ret = __db_rdonly(env, "DB_SEQUENCE->open");
-! goto err;
-! }
-! rp->seq_version = DB_SEQUENCE_VERSION;
- if (!F_ISSET(env, ENV_LITTLEENDIAN)) {
- if (IS_DB_AUTO_COMMIT(dbp, txn)) {
- if ((ret =
-***************
-*** 707,712 ****
---- 721,733 ----
-
- MUTEX_LOCK(env, seq->mtx_seq);
-
-+ if (handle_check && IS_REP_CLIENT(env) &&
-+ !F_ISSET(dbp, DB_AM_NOT_DURABLE)) {
-+ ret = __db_rdonly(env, "DB_SEQUENCE->get");
-+ goto err;
-+ }
-+
-+
- if (rp->seq_min + delta > rp->seq_max) {
- __db_errx(env, "Sequence overflow");
- ret = EINVAL;
|