~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/pbxt/src/database_xt.cc

  • Committer: Monty Taylor
  • Date: 2010-04-22 02:46:23 UTC
  • mto: (1497.3.4 enable-dtrace)
  • mto: This revision was merged to the branch mainline in revision 1527.
  • Revision ID: mordred@inaugust.com-20100422024623-4urw8fi8eraci08p
Don't overwrite the pandora_vc_revinfo file if we don't have new
authoratative information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
 *
15
15
 * You should have received a copy of the GNU General Public License
16
16
 * along with this program; if not, write to the Free Software
17
 
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 
17
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
18
 *
19
19
 * 2005-01-15   Paul McCullagh
20
20
 *
90
90
 * LOCK/UNLOCK INSTALLATION
91
91
 */
92
92
 
93
 
xtPublic void xt_lock_installation(XTThreadPtr self, const char *installation_path)
 
93
xtPublic void xt_lock_installation(XTThreadPtr self, char *installation_path)
94
94
{
95
95
        char                    file_path[PATH_MAX];
96
96
        char                    buffer[101];
189
189
        cont_(a);
190
190
}
191
191
 
192
 
xtPublic void xt_unlock_installation(XTThreadPtr self, const char *installation_path)
 
192
xtPublic void xt_unlock_installation(XTThreadPtr self, char *installation_path)
193
193
{
194
194
        if (db_lock_file) {
195
195
                char lock_file[PATH_MAX];
451
451
 * Just the last component of the path (i.e. the database name) should be
452
452
 * sufficient!?
453
453
 */
454
 
xtPublic XTDatabaseHPtr xt_get_database(XTThreadPtr self, const char *path, xtBool multi_path)
 
454
xtPublic XTDatabaseHPtr xt_get_database(XTThreadPtr self, char *path, xtBool multi_path)
455
455
{
456
456
        XTDatabaseHPtr  db = NULL;
457
457
        char                    db_path[PATH_MAX];
649
649
/*
650
650
 * Open/use a database.
651
651
 */
652
 
xtPublic void xt_open_database(XTThreadPtr self, const char *path, xtBool multi_path)
 
652
xtPublic void xt_open_database(XTThreadPtr self, char *path, xtBool multi_path)
653
653
{
654
654
        XTDatabaseHPtr db;
655
655
 
1545
1545
{
1546
1546
        DBThreadDataPtr td = (DBThreadDataPtr) self->t_data;
1547
1547
        XTDatabaseHPtr  db = td->td_db;
1548
 
        volatile int    i = 0;
 
1548
        volatile int                            i = 0;
1549
1549
 
1550
1550
        /* Note, the MySQL thread will be free when the this
1551
1551
         * thread quits.
1916
1916
        virtual void    tk_release();
1917
1917
};
1918
1918
 
1919
 
xtBool XTTestTask::tk_task(XTThreadPtr XT_UNUSED(thread))
 
1919
xtBool XTTestTask::tk_task(XTThreadPtr)
1920
1920
{
1921
1921
        sleep(tt_sleep_time);
1922
1922
        return OK;