chiark / gitweb /
DB_RECORDCOUNT has been deprecated for ages and has gone in db4.6
authorRichard Kettlewell <richard@deodand>
Sun, 19 Aug 2007 15:54:53 +0000 (15:54 +0000)
committerRichard Kettlewell <richard@deodand>
Sun, 19 Aug 2007 15:54:53 +0000 (15:54 +0000)
server/trackdb.c

index 879adb1..324d477 100644 (file)
@@ -1278,8 +1278,7 @@ const char *trackdb_random(int tries) {
     } else {
       /* No required tags.  We pick random record numbers in the database
        * instead. */
-      switch(err = trackdb_tracksdb->stat(trackdb_tracksdb, tid, &sp,
-                                          DB_RECORDCOUNT)) {
+      switch(err = trackdb_tracksdb->stat(trackdb_tracksdb, tid, &sp, 0)) {
       case 0:
         break;
       case DB_LOCK_DEADLOCK: