Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ba42fb3a authored by Vasu Nori's avatar Vasu Nori Committed by Android (Google) Code Review
Browse files

Merge "when printing cache-full warning, print the sql statements in cache"

parents 23f22430 74fb2685
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -2130,6 +2130,11 @@ public class SQLiteDatabase extends SQLiteClosable {
                Log.w(TAG, "Reached MAX size for compiled-sql statement cache for database " +
                Log.w(TAG, "Reached MAX size for compiled-sql statement cache for database " +
                        getPath() + ". Use setMaxSqlCacheSize() to increase cachesize. ");
                        getPath() + ". Use setMaxSqlCacheSize() to increase cachesize. ");
                mCacheFullWarning = true;
                mCacheFullWarning = true;
                // STOPSHIP enclose the following warnings with "if (SQLiteDebug.DEBUG_SQL_CACHE)"
                Log.d(TAG, "Here are the SQL statements in Cache of database: " + mPath);
                for (String s : mCompiledQueries.keySet()) {
                    Log.d(TAG, "Sql stament in Cache: " + s);
                }
            } 
            } 
            /* add the given SQLiteCompiledSql compiledStatement to cache.
            /* add the given SQLiteCompiledSql compiledStatement to cache.
             * no need to worry about the cache size - because {@link #mCompiledQueries}
             * no need to worry about the cache size - because {@link #mCompiledQueries}