82
82
temp_pool_slot = bitmap_lock_set_next(&temp_pool);
84
84
if (temp_pool_slot != MY_BIT_NONE) // we got a slot
85
sprintf(path, "%s_%lx_%i", tmp_file_prefix,
85
sprintf(path, "%s_%lx_%i", TMP_FILE_PREFIX,
86
86
current_pid, temp_pool_slot);
89
89
/* if we run out of slots or we are not using tempool */
90
sprintf(path,"%s%lx_%"PRIx64"_%x", tmp_file_prefix,current_pid,
90
sprintf(path,"%s%lx_%"PRIx64"_%x", TMP_FILE_PREFIX, current_pid,
91
91
session->thread_id, session->tmp_table++);
93
93
fn_format(path, path, drizzle_tmpdir, "", MY_REPLACE_EXT|MY_UNPACK_FILENAME);