87
87
if (temp_pool_slot != MY_BIT_NONE) // we got a slot
88
88
sprintf(path, "%s_%lx_%i", TMP_FILE_PREFIX,
92
92
/* if we run out of slots or we are not using tempool */
93
sprintf(path,"%s%lx_%"PRIx64"_%x", TMP_FILE_PREFIX, current_pid,
93
sprintf(path,"%s%lx_%"PRIx64"_%x", TMP_FILE_PREFIX, (unsigned long)current_pid,
94
94
session->thread_id, session->tmp_table++);
96
96
fn_format(path, path, drizzle_tmpdir, "", MY_REPLACE_EXT|MY_UNPACK_FILENAME);