ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/BDB/BDB.xs
(Generate patch)

Comparing BDB/BDB.xs (file contents):
Revision 1.21 by root, Thu Dec 6 02:44:48 2007 UTC vs.
Revision 1.25 by root, Mon Dec 10 04:45:54 2007 UTC

324 case REQ_C_GET: 324 case REQ_C_GET:
325 case REQ_C_PGET: 325 case REQ_C_PGET:
326 dbt_to_sv (req->sv1, &req->dbt1); 326 dbt_to_sv (req->sv1, &req->dbt1);
327 dbt_to_sv (req->sv2, &req->dbt2); 327 dbt_to_sv (req->sv2, &req->dbt2);
328 dbt_to_sv (req->sv3, &req->dbt3); 328 dbt_to_sv (req->sv3, &req->dbt3);
329 break;
330
331 case REQ_DB_PUT:
332 case REQ_C_PUT:
333 dbt_to_sv (0, &req->dbt1);
334 dbt_to_sv (0, &req->dbt2);
329 break; 335 break;
330 336
331 case REQ_DB_KEY_RANGE: 337 case REQ_DB_KEY_RANGE:
332 { 338 {
333 AV *av = newAV (); 339 AV *av = newAV ();
1087 const_iv (LOG_BUFFER_FULL) 1093 const_iv (LOG_BUFFER_FULL)
1088 const_iv (NOSERVER) 1094 const_iv (NOSERVER)
1089 const_iv (NOSERVER_HOME) 1095 const_iv (NOSERVER_HOME)
1090 const_iv (NOSERVER_ID) 1096 const_iv (NOSERVER_ID)
1091 const_iv (NOTFOUND) 1097 const_iv (NOTFOUND)
1092 const_iv (OLD_VERSION)
1093 const_iv (PAGE_NOTFOUND) 1098 const_iv (PAGE_NOTFOUND)
1094 const_iv (REP_DUPMASTER) 1099 const_iv (REP_DUPMASTER)
1095 const_iv (REP_HANDLE_DEAD) 1100 const_iv (REP_HANDLE_DEAD)
1096 const_iv (REP_HOLDELECTION) 1101 const_iv (REP_HOLDELECTION)
1097 const_iv (REP_IGNORE) 1102 const_iv (REP_IGNORE)
1134 }; 1139 };
1135 1140
1136 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) 1141 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; )
1137 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 1142 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
1138 1143
1139 newCONSTSUB (stash, "DB_VERSION", newSVnv (DB_VERSION_MAJOR + DB_VERSION_MINOR * .1)); 1144 newCONSTSUB (stash, "VERSION", newSVnv (DB_VERSION_MAJOR + DB_VERSION_MINOR * .1));
1140 newCONSTSUB (stash, "DB_VERSION_STRING", newSVpv (DB_VERSION_STRING, 0)); 1145 newCONSTSUB (stash, "VERSION_STRING", newSVpv (DB_VERSION_STRING, 0));
1141 1146
1142 create_respipe (); 1147 create_respipe ();
1143 1148
1144 X_THREAD_ATFORK (atfork_prepare, atfork_parent, atfork_child); 1149 X_THREAD_ATFORK (atfork_prepare, atfork_parent, atfork_child);
1145#ifdef _WIN32 1150#ifdef _WIN32
1727 CODE: 1732 CODE:
1728 RETVAL = env->set_cachesize (env, gbytes, bytes, ncache); 1733 RETVAL = env->set_cachesize (env, gbytes, bytes, ncache);
1729 OUTPUT: 1734 OUTPUT:
1730 RETVAL 1735 RETVAL
1731 1736
1732int set_flags (DB_ENV *env, U32 flags, int onoff) 1737int set_flags (DB_ENV *env, U32 flags, int onoff = 1)
1733 CODE: 1738 CODE:
1734 RETVAL = env->set_flags (env, flags, onoff); 1739 RETVAL = env->set_flags (env, flags, onoff);
1735 OUTPUT: 1740 OUTPUT:
1736 RETVAL 1741 RETVAL
1737 1742
1741 1746
1742void set_msgfile (DB_ENV *env, FILE *msgfile = 0) 1747void set_msgfile (DB_ENV *env, FILE *msgfile = 0)
1743 CODE: 1748 CODE:
1744 env->set_msgfile (env, msgfile); 1749 env->set_msgfile (env, msgfile);
1745 1750
1746int set_verbose (DB_ENV *env, U32 which, int onoff = 1) 1751int set_verbose (DB_ENV *env, U32 which = -1, int onoff = 1)
1747 CODE: 1752 CODE:
1748 RETVAL = env->set_verbose (env, which, onoff); 1753 RETVAL = env->set_verbose (env, which, onoff);
1749 OUTPUT: 1754 OUTPUT:
1750 RETVAL 1755 RETVAL
1751 1756
1811 1816
1812int set_lg_max (DB_ENV *env, U32 max) 1817int set_lg_max (DB_ENV *env, U32 max)
1813 CODE: 1818 CODE:
1814 RETVAL = env->set_lg_max (env, max); 1819 RETVAL = env->set_lg_max (env, max);
1815 OUTPUT: 1820 OUTPUT:
1821 RETVAL
1822
1823int mutex_set_max (DB_ENV *env, U32 max)
1824 CODE:
1825 RETVAL = env->mutex_set_max (env, max);
1826 OUTPUT:
1827 RETVAL
1828
1829int mutex_set_increment (DB_ENV *env, U32 increment)
1830 CODE:
1831 RETVAL = env->mutex_set_increment (env, increment);
1832 OUTPUT:
1833 RETVAL
1834
1835int mutex_set_tas_spins (DB_ENV *env, U32 tas_spins)
1836 CODE:
1837 RETVAL = env->mutex_set_tas_spins (env, tas_spins);
1838 OUTPUT:
1839 RETVAL
1840
1841int mutex_set_align (DB_ENV *env, U32 align)
1842 CODE:
1843 RETVAL = env->mutex_set_align (env, align);
1844 OUTPUT:
1816 RETVAL 1845 RETVAL
1817 1846
1818DB_TXN * 1847DB_TXN *
1819txn_begin (DB_ENV *env, DB_TXN_ornull *parent = 0, U32 flags = 0) 1848txn_begin (DB_ENV *env, DB_TXN_ornull *parent = 0, U32 flags = 0)
1820 CODE: 1849 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines