Skip to content

Commit 31c803e

Browse files
author
V S Murthy Sidagam
committed
Bug #18592390 QUERY TO I_S.TABLES AND I_S.COLUMNS LEADS TO HUGE MEMORY USAGE
As part of the fix find_files() prototype has been modified and mysql-cluster uses find_files() function. Hence modified find_files() call in ha_ndbcluster_binlog.cc file to make mysql-cluster build successful.
1 parent c9a38e8 commit 31c803e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sql/ha_ndbcluster_binlog.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
2+
Copyright (c) 2006, 2015, Oracle and/or its affiliates. All rights reserved.
33
44
This program is free software; you can redistribute it and/or modify
55
it under the terms of the GNU General Public License as published by
@@ -2542,7 +2542,8 @@ ndbcluster_check_if_local_tables_in_db(THD *thd, const char *dbname)
25422542
char path[FN_REFLEN + 1];
25432543

25442544
build_table_filename(path, sizeof(path) - 1, dbname, "", "", 0);
2545-
if (find_files(thd, &files, dbname, path, NullS, 0) != FIND_FILES_OK)
2545+
if (find_files(thd, &files, dbname, path, NullS, 0, NULL) !=
2546+
FIND_FILES_OK)
25462547
{
25472548
DBUG_PRINT("info", ("Failed to find files"));
25482549
DBUG_RETURN(true);

0 commit comments

Comments
 (0)